diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-01-16 17:53:34 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-01-16 17:53:34 -0500 |
| commit | 1f6c09e54ab53403fe0236c46f69b896713abddc (patch) | |
| tree | 9883c57e28e85c7f84755f43c7b86448af9c13df /python/architecture.py | |
| parent | 41acb3d72d6ec23620a744b7f84c8359e425b30b (diff) | |
Fix lint issues
Diffstat (limited to 'python/architecture.py')
| -rw-r--r-- | python/architecture.py | 6 |
1 files changed, 3 insertions, 3 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 = {} |
