python: CsInsn's errno() method is missing self argument

This commit is contained in:
Nguyen Anh Quynh 2014-01-08 15:26:15 +08:00
parent f1b05083a7
commit 2bb6bdb08e
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class CsInsn(object):
return _dict[name]
# get the last error code
def errno():
def errno(self):
return _cs.cs_errno(self._cs.csh)
# get the register name, given the register ID