From ba72c577874c83567737d08ca64d3e52090763b7 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 28 Sep 2020 16:50:27 +0800 Subject: add unit test for deprecated BinaryViewType expose FileMetadata::GetExistingViews() --- python/binaryview.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index b7f5b745..e7c39641 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -731,6 +731,11 @@ class BinaryViewType(with_metaclass(_BinaryViewTypeMetaclass, object)): """BinaryView long name (read-only)""" return core.BNGetBinaryViewTypeLongName(self.handle) + @property + def is_deprecated(self): + """returns if the BinaryViewType is deprecated (read-only)""" + return core.BNIsBinaryViewTypeDeprecated(self.handle) + def create(self, data): view = core.BNCreateBinaryViewOfType(self.handle, data.handle) if view is None: -- cgit v1.3.1