This commit is contained in:
Zach Riggle 2015-04-20 20:57:19 -07:00
parent 90726f70ca
commit ca6d30fa07
2 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,7 @@ def procinfo():
Display information about the running process.
"""
if not psutil:
print "psutil required but not installed"
print("psutil required but not installed")
return
exe = repr(str(pwndbg.auxv.get()['AT_EXECFN']))

View File

@ -23,9 +23,11 @@ try:
except:
import xmlrpclib
xmlrpclib.Marshaller.dispatch[int] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
if pwndbg.compat.python2:
xmlrpclib.Marshaller.dispatch[type(0L)] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
xmlrpclib.Marshaller.dispatch[type(0)] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
xmlrpclib.Marshaller.dispatch[long] = lambda _, v, w: w("<value><i8>%d</i8></value>" % v)
_ida = None