From 69e005b330a1c71978096e9f98f625e481725a14 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 17 Apr 2023 21:19:49 -0400 Subject: Allow TypeLibrary::Finalize() to return true on success --- python/typelibrary.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/typelibrary.py b/python/typelibrary.py index f13fbb1a..63e7c33b 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -207,12 +207,14 @@ class TypeLibrary: """Clears the list of platforms associated with a type library instance that has not been finalized""" core.BNClearTypeLibraryPlatforms(self.handle) - def finalize(self) -> None: + def finalize(self) -> bool: """ Flags a newly created type library instance as finalized and makes it available for Platform and Architecture type library searches + + :rtype: True if the type library was successfully finalized, False otherwise """ - core.BNFinalizeTypeLibrary(self.handle) + return core.BNFinalizeTypeLibrary(self.handle) def query_metadata(self, key: str) -> Optional[metadata.Metadata]: """ -- cgit v1.3.1