git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
272f5c9
)
s4-scripting: let gen_hresult.py tolerate empty lines.
author
Günther Deschner
<gd@samba.org>
Fri, 19 Aug 2016 22:32:39 +0000
(
00:32
+0200)
committer
Jeremy Allison
<jra@samba.org>
Mon, 22 Aug 2016 23:06:24 +0000
(
01:06
+0200)
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/scripting/bin/gen_hresult.py
patch
|
blob
|
history
diff --git
a/source4/scripting/bin/gen_hresult.py
b/source4/scripting/bin/gen_hresult.py
index 176c89de496ca56f5c7266e73e0052ad2a9492bc..d49aef9a0b4769c1a94b0ae9181b4e0a605894c6 100755
(executable)
--- a/
source4/scripting/bin/gen_hresult.py
+++ b/
source4/scripting/bin/gen_hresult.py
@@
-50,6
+50,8
@@
def parseErrorDescriptions( input_file, isWinError ):
for line in fileContents:
content = line.strip().split(None,1)
# start new error definition ?
+ if len(content) == 0:
+ continue
if line.startswith("0x"):
newError = ErrorDef()
newError.err_code = content[0]