diff options
author | Cody <cody@quantifiedcode.com> | 2016-12-06 15:47:21 +0000 |
---|---|---|
committer | Cody <cody@quantifiedcode.com> | 2016-12-06 15:47:21 +0000 |
commit | dd4ddd8de0b6447d1d3e14f15d227b572ffef00a (patch) | |
tree | 1ed1cd1e9f08b60dd41d530412eb83c6895dc71d /docs/source | |
parent | 214dde0d85617d253e1da442905ea5589901d1b3 (diff) |
Use `is` operator for comparing with `None` (Pep8)
Diffstat (limited to 'docs/source')
-rwxr-xr-x | docs/source/generate_configs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/generate_configs.py b/docs/source/generate_configs.py index 8b0009e8..4320e7f3 100755 --- a/docs/source/generate_configs.py +++ b/docs/source/generate_configs.py @@ -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() @@ -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) |