diff options
| author | Brian Potchik <brian@vector35.com> | 2025-05-26 18:45:17 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-05-26 18:45:17 -0400 |
| commit | ff04e7fbbbd6ccbdd6ed35a4e243699eca99935a (patch) | |
| tree | 97f3bd8ec7c35de3b91189baab98dd828f7895f9 | |
| parent | 05a62897368a49680470bf1ff1da5336a1ed1f6d (diff) | |
Fix analysis state properties to return enums instead of integers.
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index bb26f7a7..60a910d6 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3381,12 +3381,12 @@ class BinaryView: def analysis_progress(self) -> AnalysisProgress: """Status of current analysis (read-only)""" result = core.BNGetAnalysisProgress(self.handle) - return AnalysisProgress(result.state, result.count, result.total) + return AnalysisProgress(AnalysisState(result.state), result.count, result.total) @property def analysis_state(self) -> AnalysisState: """State of current analysis (read-only)""" - return core.BNGetAnalysisState(self.handle) + return AnalysisState(core.BNGetAnalysisState(self.handle)) @property def linear_disassembly(self) -> Iterator['lineardisassembly.LinearDisassemblyLine']: |
