diff options
| author | Xusheng <xusheng@vector35.com> | 2023-01-20 07:55:14 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2023-01-20 07:55:14 +0800 |
| commit | fae8134d7e8e8102515844c0f85573927548f857 (patch) | |
| tree | 896cdb1f9cd050d8850337c2a2c4f75cf8067e91 /python | |
| parent | 55f5fe7d863f1a4dcd740487e6afd2d35524f378 (diff) | |
Do not import packaging in deprecation.py. Fix https://github.com/Vector35/binaryninja-api/issues/3810
Diffstat (limited to 'python')
| -rw-r--r-- | python/deprecation.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/python/deprecation.py b/python/deprecation.py index 27a67b2e..fecb3fbc 100644 --- a/python/deprecation.py +++ b/python/deprecation.py @@ -14,7 +14,6 @@ import functools import textwrap import warnings -from packaging import version from datetime import date __version__ = "2.0.7" @@ -166,15 +165,6 @@ def deprecated(deprecated_in=None, removed_in=None, current_version=None, is_unsupported = True else: is_deprecated = True - elif current_version: - current_version = version.parse(current_version) - - if (removed_in - and current_version >= version.parse(removed_in)): - is_unsupported = True - elif (deprecated_in - and current_version >= version.parse(deprecated_in)): - is_deprecated = True else: # If we can't actually calculate that we're in a period of # deprecation...well, they used the decorator, so it's deprecated. |
