summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-08-20 00:32:39 +0200
committerJeremy Allison <jra@samba.org>2016-08-23 01:06:24 +0200
commitbeb99b80612556bc47e72a63f89fca75839d91d4 (patch)
treec1989f87f281c030a611ea8533c8fd59f4be5af0 /source4/scripting
parent272f5c95cfb3d8035939dada7bd473058c7b6517 (diff)
downloadsamba-beb99b80612556bc47e72a63f89fca75839d91d4.tar.gz
s4-scripting: let gen_hresult.py tolerate empty lines.
Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/bin/gen_hresult.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/bin/gen_hresult.py b/source4/scripting/bin/gen_hresult.py
index 176c89de496..d49aef9a0b4 100755
--- 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]