diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-30 15:37:15 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:43 -0400 |
| commit | bff5a6e38c945833ddb22c379d57f556244a2e25 (patch) | |
| tree | 40b72788fcde01a2fdd39f1eede74761b238df8b /python | |
| parent | c659d6705bf7d7926dcdeb1defabad5945d414da (diff) | |
Add __str__ for Architecture
Diffstat (limited to 'python')
| -rw-r--r-- | python/architecture.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/architecture.py b/python/architecture.py index 145abe3b..0b46c8ff 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -483,6 +483,9 @@ class Architecture(metaclass=_ArchitectureMetaClass): def __hash__(self): return hash(ctypes.addressof(self.handle.contents)) + def __str__(self): + return self.name + @classmethod def register(cls) -> None: binaryninja._init_plugins() |
