From fae8134d7e8e8102515844c0f85573927548f857 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 20 Jan 2023 07:55:14 +0800 Subject: Do not import packaging in deprecation.py. Fix https://github.com/Vector35/binaryninja-api/issues/3810 --- python/deprecation.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'python') 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. -- cgit v1.3.1