diff options
| author | Josh Ferrell <josh@vector35.com> | 2023-03-29 16:02:34 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2023-03-29 16:02:34 -0400 |
| commit | 69d482b1a8eccbb69f44c44e215e41dbef920146 (patch) | |
| tree | 3b1ea4555d49c86fb1ce415a64048f95c842fa20 /python | |
| parent | 7d04e0d1d9f6aadff6e3a38b328ab8283d068b77 (diff) | |
Fix formatting of many deprecation notices
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/python/function.py b/python/function.py index a8d3d257..ebc2a40a 100644 --- a/python/function.py +++ b/python/function.py @@ -770,24 +770,24 @@ class Function: else: core.BNAddUserAddressTag(self.handle, arch.handle, addr, tag.handle) - @deprecation.deprecated(details='create_user_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_user_tag(self, type: 'binaryview.TagType', data: str = "") -> 'binaryview.Tag': return self.create_tag(type, data, True) - @deprecation.deprecated(details='create_auto_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_auto_tag(self, type: 'binaryview.TagType', data: str = "") -> 'binaryview.Tag': return self.create_tag(type, data, False) - @deprecation.deprecated(details='create_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_tag(self, type: 'binaryview.TagType', data: str = "", auto: bool = False) -> 'binaryview.Tag': return self.view.create_tag(type, data, auto) @property - @deprecation.deprecated(details='address_tags is deprecated; use tags instead') + @deprecation.deprecated(details='Use tags instead.') def address_tags(self) -> TagList: return TagList(self) - @deprecation.deprecated(details='get_address_tags_at is deprecated; use get_tags_at instead') + @deprecation.deprecated(details='Use get_tags_at instead.') def get_address_tags_at(self, addr: int, arch: Optional['architecture.Architecture'] = None) -> List['binaryview.Tag']: if arch is None: @@ -805,7 +805,7 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='add_user_address_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def add_user_address_tag( self, addr: int, tag: 'binaryview.Tag', arch: Optional['architecture.Architecture'] = None ) -> None: @@ -813,7 +813,7 @@ class Function: arch = self.arch core.BNAddUserAddressTag(self.handle, arch.handle, addr, tag.handle) - @deprecation.deprecated(details='create_user_address_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_user_address_tag( self, addr: int, tag_type: 'binaryview.TagType', data: str, unique: bool = False, arch: Optional['architecture.Architecture'] = None @@ -848,7 +848,7 @@ class Function: arch = self.arch core.BNRemoveUserAddressTag(self.handle, arch.handle, addr, tag.handle) - @deprecation.deprecated(details='add_auto_address_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def add_auto_address_tag( self, addr: int, tag: 'binaryview.Tag', arch: Optional['architecture.Architecture'] = None ) -> None: @@ -856,7 +856,7 @@ class Function: arch = self.arch core.BNAddAutoAddressTag(self.handle, arch.handle, addr, tag.handle) - @deprecation.deprecated(details='create_auto_address_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_auto_address_tag( self, addr: int, type: 'binaryview.TagType', data: str, unique: bool = False, arch: Optional['architecture.Architecture'] = None @@ -874,7 +874,7 @@ class Function: return tag @property - @deprecation.deprecated(details='function_tags is deprecated; use get_function_tags instead') + @deprecation.deprecated(details='Use get_function_tags instead.') def function_tags(self) -> List['binaryview.Tag']: count = ctypes.c_ulonglong() tags = core.BNGetFunctionTags(self.handle, count) @@ -889,11 +889,11 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='add_user_function_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def add_user_function_tag(self, tag: 'binaryview.Tag') -> None: core.BNAddUserFunctionTag(self.handle, tag.handle) - @deprecation.deprecated(details='create_user_function_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_user_function_tag(self, type: 'binaryview.TagType', data: str, unique: bool = False) -> 'binaryview.Tag': if unique: for tag in self.function_tags: @@ -914,11 +914,11 @@ class Function: """ core.BNRemoveUserFunctionTag(self.handle, tag.handle) - @deprecation.deprecated(details='add_auto_function_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def add_auto_function_tag(self, tag: 'binaryview.Tag') -> None: core.BNAddAutoFunctionTag(self.handle, tag.handle) - @deprecation.deprecated(details='create_auto_function_tag is deprecated; use add_tag instead') + @deprecation.deprecated(details='Use add_tag instead.') def create_auto_function_tag(self, type: 'binaryview.TagType', data: str, unique: bool = False) -> 'binaryview.Tag': if unique: for tag in self.function_tags: @@ -930,7 +930,7 @@ class Function: return tag @property - @deprecation.deprecated(details='auto_address_tags is deprecated; use tags instead') + @deprecation.deprecated(details='Use tags instead.') def auto_address_tags(self) -> List[Tuple['architecture.Architecture', int, 'binaryview.Tag']]: count = ctypes.c_ulonglong() tags = core.BNGetAutoAddressTagReferences(self.handle, count) @@ -948,7 +948,7 @@ class Function: core.BNFreeTagReferences(tags, count.value) @property - @deprecation.deprecated(details='user_address_tags is deprecated; use tags instead') + @deprecation.deprecated(details='Use tags instead.') def user_address_tags(self): count = ctypes.c_ulonglong() tags = core.BNGetUserAddressTagReferences(self.handle, count) @@ -965,7 +965,7 @@ class Function: finally: core.BNFreeTagReferences(tags, count.value) - @deprecation.deprecated(details='get_auto_address_tags_at is deprecated; use get_tags_at instead') + @deprecation.deprecated(details='Use get_tags_at instead.') def get_auto_address_tags_at(self, addr, arch=None): if arch is None: assert self.arch is not None, "Can't call get_auto_address_tags_at for function with no architecture specified" @@ -983,7 +983,7 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='get_user_address_tags_at is deprecated; use get_tags_at instead') + @deprecation.deprecated(details='Use get_tags_at instead.') def get_user_address_tags_at(self, addr, arch=None): if arch is None: assert self.arch is not None, "Can't call get_user_address_tags_at for function with no architecture specified" @@ -1001,7 +1001,7 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='get_address_tags_of_type is deprecated; use get_tags_at instead') + @deprecation.deprecated(details='Use get_tags_at instead.') def get_address_tags_of_type(self, addr: int, tag_type: 'binaryview.TagType', arch=None): if arch is None: assert self.arch is not None, "Can't call get_address_tags_of_type for function with no architecture specified" @@ -1019,7 +1019,7 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='get_auto_address_tags_of_type is deprecated; use get_tags_at instead') + @deprecation.deprecated(details='Use get_tags_at instead.') def get_auto_address_tags_of_type( self, addr: int, tag_type: 'binaryview.TagType', arch: Optional['architecture.Architecture'] = None ): @@ -1039,7 +1039,7 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='get_user_address_tags_of_type is deprecated; use get_tags_at instead') + @deprecation.deprecated(details='Use get_tags_at instead.') def get_user_address_tags_of_type( self, addr: int, tag_type: 'binaryview.TagType', arch: Optional['architecture.Architecture'] = None ): @@ -1059,7 +1059,7 @@ class Function: finally: core.BNFreeTagList(tags, count.value) - @deprecation.deprecated(details='get_address_tags_in_range is deprecated; use get_tags_in_range instead') + @deprecation.deprecated(details='Use get_tags_in_range instead.') def get_address_tags_in_range( self, address_range: 'variable.AddressRange', arch: Optional['architecture.Architecture'] = None ) -> List[Tuple['architecture.Architecture', int, 'binaryview.Tag']]: @@ -1080,7 +1080,7 @@ class Function: finally: core.BNFreeTagReferences(refs, count.value) - @deprecation.deprecated(details='get_auto_address_tags_in_range is deprecated; use get_tags_in_range instead') + @deprecation.deprecated(details='Use get_tags_in_range instead.') def get_auto_address_tags_in_range( self, address_range: 'variable.AddressRange', arch: Optional['architecture.Architecture'] = None ) -> List[Tuple['architecture.Architecture', int, 'binaryview.Tag']]: @@ -1101,7 +1101,7 @@ class Function: finally: core.BNFreeTagReferences(refs, count.value) - @deprecation.deprecated(details='get_user_address_tags_in_range is deprecated; use get_tags_in_range instead') + @deprecation.deprecated(details='Use get_tags_in_range instead.') def get_user_address_tags_in_range( self, address_range: 'variable.AddressRange', arch: Optional['architecture.Architecture'] = None ) -> List[Tuple['architecture.Architecture', int, 'binaryview.Tag']]: @@ -1169,7 +1169,7 @@ class Function: core.BNRemoveAutoAddressTagsOfType(self.handle, arch.handle, addr, tag_type.handle) @property - @deprecation.deprecated(details='auto_function_tags is deprecated; use get_function_tags instead') + @deprecation.deprecated(details='Use get_function_tags instead.') def auto_function_tags(self): count = ctypes.c_ulonglong() tags = core.BNGetAutoFunctionTags(self.handle, count) @@ -1183,7 +1183,7 @@ class Function: return result @property - @deprecation.deprecated(details='user_function_tags is deprecated; use get_function_tags instead') + @deprecation.deprecated(details='Use get_function_tags instead.') def user_function_tags(self): count = ctypes.c_ulonglong() tags = core.BNGetUserFunctionTags(self.handle, count) @@ -1196,7 +1196,7 @@ class Function: core.BNFreeTagList(tags, count.value) return result - @deprecation.deprecated(details='get_function_tags_of_type is deprecated; use get_function_tags instead') + @deprecation.deprecated(details='Use get_function_tags instead.') def get_function_tags_of_type(self, tag_type): count = ctypes.c_ulonglong() tags = core.BNGetFunctionTagsOfType(self.handle, tag_type.handle, count) @@ -1209,7 +1209,7 @@ class Function: core.BNFreeTagList(tags, count.value) return result - @deprecation.deprecated(details='get_auto_function_tags_of_type is deprecated; use get_function_tags instead') + @deprecation.deprecated(details='Use get_function_tags instead.') def get_auto_function_tags_of_type(self, tag_type): count = ctypes.c_ulonglong() tags = core.BNGetAutoFunctionTagsOfType(self.handle, tag_type.handle, count) @@ -1222,7 +1222,7 @@ class Function: core.BNFreeTagList(tags, count.value) return result - @deprecation.deprecated(details='get_user_function_tags_of_type is deprecated; use get_function_tags instead') + @deprecation.deprecated(details='Use get_function_tags instead.') def get_user_function_tags_of_type(self, tag_type): count = ctypes.c_ulonglong() tags = core.BNGetUserFunctionTagsOfType(self.handle, tag_type.handle, count) |
