Skip to content

Commit

Permalink
Merge pull request #909 from pazz/autofix/wrapped2_to3_fix
Browse files Browse the repository at this point in the history
Fix "Use `is` or `is not` to compare with `None`" issue
  • Loading branch information
pazz committed Dec 6, 2016
2 parents 214dde0 + dd4ddd8 commit 27e644c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alot/widgets/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def pad(string, shorten=None):
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)
Expand Down
4 changes: 2 additions & 2 deletions docs/source/generate_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def rewrite_entries(config, path, specpath, sec=None, sort=False):
file = open(path, 'w')
file.write(NOTE % specpath)

if sec == None:
if sec is None:
sec = config
if sort:
sec.scalars.sort()
Expand Down Expand Up @@ -46,7 +46,7 @@ def rewrite_entries(config, path, specpath, sec=None, sort=False):
etype = 'string list'
description += '\n :type: %s\n' % etype

if default != None:
if default is not None:
default = default.replace('*','\\*')
if etype in ['string', 'string_list', 'gpg_key_hint'] and default != 'None':
description += ' :default: "%s"\n\n' % (default)
Expand Down

0 comments on commit 27e644c

Please sign in to comment.