From 1515df8e71412787470b27d04ed9b2944fca0fdc Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Wed, 10 Feb 2021 22:02:50 +0000 Subject: Misc typo changes, const changes, code cleanup, and example updates --- python/binaryview.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 741c08a7..b1bbdb6e 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -253,6 +253,7 @@ class AnalysisCompletionEvent(object): def view(self, value): self._view = value + # This has no functional purposes; # we just need it to stop Python from prematurely freeing the object _binaryview_events = {} @@ -260,7 +261,7 @@ class BinaryViewEvent(object): """ The ``BinaryViewEvent`` object provides a mechanism for receiving callbacks when a BinaryView is Finalized or the initial analysis is finished. The BinaryView finalized callbacks run before the - intial analysis starts. The callbacks run one-after-another in the same order as they get registered. + initial analysis starts. The callbacks run one-after-another in the same order as they get registered. It is a good place to modify the BinaryView to add extra information to it. For newly opened binaries, the initial analysis completion callbacks run after the initial analysis, @@ -273,7 +274,7 @@ class BinaryViewEvent(object): :Example: >>> def callback(bv): - ... print('start: 0x%x' % bv.start) + ... print('start: 0x%x' % bv.start) ... >>> BinaryViewType.add_binaryview_finalized_event(callback) """ -- cgit v1.3.1