mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
py/tests/dcerpc_rpc: Py3 compat integer types
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
parent
aafe6bf96a
commit
9c2447e2d8
@ -22,6 +22,7 @@ sys.path.insert(0, "bin/python")
|
||||
import samba
|
||||
import samba.tests
|
||||
from samba.dcerpc import drsuapi
|
||||
from samba.compat import integer_types
|
||||
import talloc
|
||||
|
||||
talloc.enable_null_tracking()
|
||||
@ -98,7 +99,7 @@ class RpcTests(object):
|
||||
if isinstance(value, str):
|
||||
# print "%s=\"%s\"" % (n, value)
|
||||
pass
|
||||
elif isinstance(value, int) or isinstance(value, long):
|
||||
elif isinstance(value, integer_types):
|
||||
# print "%s=%d" % (n, value)
|
||||
pass
|
||||
elif isinstance(value, type):
|
||||
|
Loading…
Reference in New Issue
Block a user