git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8532308
)
s4/scripting/autoidl: py3 compatible except
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Sat, 27 Oct 2018 22:12:20 +0000
(11:12 +1300)
committer
Douglas Bagnall
<dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:10 +0000
(
05:08
+0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
source4/scripting/bin/autoidl
patch
|
blob
|
history
diff --git
a/source4/scripting/bin/autoidl
b/source4/scripting/bin/autoidl
index 6a13caa25108f884c59a2d0850e240ea706c461b..317749c75a0422b782425a05b9b1e250fda24b4d 100755
(executable)
--- a/
source4/scripting/bin/autoidl
+++ b/
source4/scripting/bin/autoidl
@@
-37,8
+37,8
@@
def find_num_funcs(conn):
for i in xrange(MAX_OPNUM):
try:
conn.request(i, "")
- except RuntimeError
, (num, msg)
:
- if
num
== DCERPC_FAULT_OP_RNG_ERROR:
+ except RuntimeError
as e
:
+ if
e.args[0]
== DCERPC_FAULT_OP_RNG_ERROR:
return i
raise Exception("More than %d functions" % MAX_OPNUM)