diff options
| author | Xusheng <xusheng@vector35.com> | 2023-01-18 11:15:17 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2023-01-19 09:50:35 +0800 |
| commit | e4ab8f35ce16baafe11d7056d1d1304f3c057cd5 (patch) | |
| tree | 415154972bad461bdc2e5a3a93f4c7c6b5f767c0 /python/decorators.py | |
| parent | 919384bb2bb9216e000750a00793549ef7a46d87 (diff) | |
Deprecate __len__ of Segment
Print a warning message when a deprecated function/property/class is used
Diffstat (limited to 'python/decorators.py')
| -rw-r--r-- | python/decorators.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/python/decorators.py b/python/decorators.py index c6664652..6ac77be0 100644 --- a/python/decorators.py +++ b/python/decorators.py @@ -12,20 +12,6 @@ def passive(cls): return cls -def deprecated(cls): - deprecated_note = ''' - .. warning:: This object is deprecated. Please migrate code away from using this class or method. - -''' - - if hasattr(cls, "__doc__") and cls.__doc__: - cls.__doc__ = deprecated_note + cls.__doc__ - else: - cls.__doc__ = deprecated_note - - return cls - - def enterprise(cls): enterprise_note = ''' .. note: This object is only available in the Enterprise edition of Binary Ninja. |
