From ff04e7fbbbd6ccbdd6ed35a4e243699eca99935a Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 26 May 2025 18:45:17 -0400 Subject: Fix analysis state properties to return enums instead of integers. --- python/binaryview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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']: -- cgit v1.3.1