mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s4:scripting: Let error definition generation scripts tolerate empty lines
Commit beb99b80612556bc47e72a63f89fca75839d91d4 add a similar check just for gen_hresult.py. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
a1bf1b2289
commit
484a1a301a
@ -54,6 +54,8 @@ def parseErrorDescriptions( file_contents, isWinError, transformErrorFunction ):
|
||||
continue
|
||||
content = line.strip().split(None,1)
|
||||
# start new error definition ?
|
||||
if len(content) == 0:
|
||||
continue
|
||||
if line.startswith("0x"):
|
||||
newError = ErrorDef()
|
||||
newError.err_code = int(content[0],0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user