diff options
| author | Daniel Ingram <[email protected]> | 2018-12-10 15:11:37 -0500 |
|---|---|---|
| committer | Daniel Ingram <[email protected]> | 2018-12-10 15:11:37 -0500 |
| commit | 17b55202dae8d6e21d2490de89b345c55f7694c0 (patch) | |
| tree | 1ad96c27d8804178e08c3b2a17afb24295a7b951 /contrib | |
| parent | Change '== None' to 'is None' (diff) | |
| download | discoin-17b55202dae8d6e21d2490de89b345c55f7694c0.tar.xz discoin-17b55202dae8d6e21d2490de89b345c55f7694c0.zip | |
Compare to None with is/is not
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/devtools/copyright_header.py | 2 | ||||
| -rwxr-xr-x | contrib/devtools/update-translations.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/devtools/copyright_header.py b/contrib/devtools/copyright_header.py index 2d539ffe4..6d7a592f0 100755 --- a/contrib/devtools/copyright_header.py +++ b/contrib/devtools/copyright_header.py @@ -491,7 +491,7 @@ def get_git_change_year_range(filename): def file_already_has_core_copyright(file_lines): index, _ = get_updatable_copyright_line(file_lines) - return index != None + return index is not None ################################################################################ # insert header execution diff --git a/contrib/devtools/update-translations.py b/contrib/devtools/update-translations.py index f0098cfcd..1b9d3a4c2 100755 --- a/contrib/devtools/update-translations.py +++ b/contrib/devtools/update-translations.py @@ -125,7 +125,7 @@ def escape_cdata(text): return text def contains_bitcoin_addr(text, errors): - if text != None and ADDRESS_REGEXP.search(text) != None: + if text is not None and ADDRESS_REGEXP.search(text) is not None: errors.append('Translation "%s" contains a bitcoin address. This will be removed.' % (text)) return True return False |