mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user