summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorCody <cody@quantifiedcode.com>2016-12-06 15:47:21 +0000
committerCody <cody@quantifiedcode.com>2016-12-06 15:47:21 +0000
commitdd4ddd8de0b6447d1d3e14f15d227b572ffef00a (patch)
tree1ed1cd1e9f08b60dd41d530412eb83c6895dc71d /alot
parent214dde0d85617d253e1da442905ea5589901d1b3 (diff)
Use `is` operator for comparing with `None` (Pep8)
Diffstat (limited to 'alot')
-rw-r--r--alot/widgets/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/search.py b/alot/widgets/search.py
index 70c0064a..6c351f4a 100644
--- a/alot/widgets/search.py
+++ b/alot/widgets/search.py
@@ -54,7 +54,7 @@ class ThreadlineWidget(urwid.AttrMap):
datestring = ''
if self.thread:
newest = self.thread.get_newest_date()
- if newest != None:
+ if newest is not None:
datestring = settings.represent_datetime(newest)
datestring = pad(datestring)
width = len(datestring)