Fixes issue # 1554:

Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
This commit is contained in:
Per A. Brodtkorb
2020-03-23 11:53:36 +01:00
parent ef1edacc20
commit fc1823315b
50 changed files with 174 additions and 174 deletions

View File

@@ -53,7 +53,7 @@ __res = None
def get_resources():
\"\"\" This function provides access to the XML resources in this module.\"\"\"
global __res
if __res == None:
if __res is None:
__init_resources()
return __res