git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Use 'is' for identity when comparing against None
[samba.git]
/
source4
/
scripting
/
bin
/
gen_hresult.py
diff --git
a/source4/scripting/bin/gen_hresult.py
b/source4/scripting/bin/gen_hresult.py
index 9bde42911f57e6f2e3dc7e174e84379da3345b73..6a75c37eba148543867b813be269a3510fdc821c 100755
(executable)
--- a/
source4/scripting/bin/gen_hresult.py
+++ b/
source4/scripting/bin/gen_hresult.py
@@
-66,7
+66,7
@@
def parseErrorDescriptions( input_file, isWinError ):
print("Error parsing file as line %d"%count)
sys.exit()
err = Errors[-1]
- if err.err_define
==
None:
+ if err.err_define
is
None:
err.err_define = "HRES_" + content[0]
else:
if len(content) > 0: