From dd4ddd8de0b6447d1d3e14f15d227b572ffef00a Mon Sep 17 00:00:00 2001 From: Cody Date: Tue, 6 Dec 2016 15:47:21 +0000 Subject: Use `is` operator for comparing with `None` (Pep8) --- alot/widgets/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/widgets') 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) -- cgit v1.2.3