summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/deprecation.py10
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.