From 17b55202dae8d6e21d2490de89b345c55f7694c0 Mon Sep 17 00:00:00 2001 From: Daniel Ingram Date: Mon, 10 Dec 2018 15:11:37 -0500 Subject: Compare to None with is/is not --- contrib/devtools/update-translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/devtools/update-translations.py') diff --git a/contrib/devtools/update-translations.py b/contrib/devtools/update-translations.py index f0098cfcdf..1b9d3a4c27 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 -- cgit v1.2.3