summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2017-01-16 17:53:34 -0500
committerRusty Wagner <rusty@vector35.com>2017-01-16 17:53:34 -0500
commit1f6c09e54ab53403fe0236c46f69b896713abddc (patch)
tree9883c57e28e85c7f84755f43c7b86448af9c13df /python
parent41acb3d72d6ec23620a744b7f84c8359e425b30b (diff)
Fix lint issues
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py6
-rw-r--r--python/binaryview.py8
-rw-r--r--python/types.py1
3 files changed, 7 insertions, 8 deletions
diff --git a/python/architecture.py b/python/architecture.py
index d67f00a6..32d97b09 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -364,7 +364,7 @@ class Architecture(object):
def __setattr__(self, name, value):
if ((name == "name") or (name == "endianness") or (name == "address_size") or
- (name == "default_int_size") or (name == "regs") or (name == "get_max_instruction_length")):
+ (name == "default_int_size") or (name == "regs") or (name == "get_max_instruction_length")):
raise AttributeError("attribute '%s' is read only" % name)
else:
try:
@@ -1610,7 +1610,7 @@ class Architecture(object):
error_str = errors.value
core.BNFreeString(ctypes.cast(errors, ctypes.POINTER(ctypes.c_byte)))
if not result:
- raise SyntaxError, error_str
+ raise SyntaxError(error_str)
type_dict = {}
variables = {}
functions = {}
@@ -1654,7 +1654,7 @@ class Architecture(object):
error_str = errors.value
core.BNFreeString(ctypes.cast(errors, ctypes.POINTER(ctypes.c_byte)))
if not result:
- raise SyntaxError, error_str
+ raise SyntaxError(error_str)
type_dict = {}
variables = {}
functions = {}
diff --git a/python/binaryview.py b/python/binaryview.py
index 34be139d..cf30d78d 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -250,16 +250,16 @@ class BinaryDataNotificationCallbacks(object):
def _type_defined(self, ctxt, name, type_obj):
try:
qualified_name = types.QualifiedName._from_core_struct(name[0])
- self.notify.type_defined(self.view, qualified_name, Type(core.BNNewTypeReference(type_obj)))
+ self.notify.type_defined(self.view, qualified_name, types.Type(core.BNNewTypeReference(type_obj)))
except:
- log_error(traceback.format_exc())
+ log.log_error(traceback.format_exc())
def _type_undefined(self, ctxt, name, type_obj):
try:
qualified_name = types.QualifiedName._from_core_struct(name[0])
- self.notify.type_undefined(self.view, qualified_name, Type(core.BNNewTypeReference(type_obj)))
+ self.notify.type_undefined(self.view, qualified_name, types.Type(core.BNNewTypeReference(type_obj)))
except:
- log_error(traceback.format_exc())
+ log.log_error(traceback.format_exc())
class _BinaryViewTypeMetaclass(type):
diff --git a/python/types.py b/python/types.py
index 757f88aa..0470ea73 100644
--- a/python/types.py
+++ b/python/types.py
@@ -24,7 +24,6 @@ import ctypes
import _binaryninjacore as core
from enums import SymbolType, TypeClass, NamedTypeReferenceClass
import callingconvention
-import demangle
class QualifiedName(object):