diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-04-29 10:00:24 -0400 |
|---|---|---|
| committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-04-29 09:00:24 -0500 |
| commit | 0417d00d9ff1e19bc3ab67d39bdd18e1674768c1 (patch) | |
| tree | 65757fc8981bf5d81dbe008c944aeed2f6354601 /src/cryptography/utils.py | |
| parent | f2b541f16d6b4a4bba56dbb1f04be863ec66a9c6 (diff) | |
| download | cryptography-0417d00d9ff1e19bc3ab67d39bdd18e1674768c1.tar.gz | |
Don't compare cffi version using strings (#3524)
Diffstat (limited to 'src/cryptography/utils.py')
| -rw-r--r-- | src/cryptography/utils.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py index 40359c62b..bec56d5b4 100644 --- a/src/cryptography/utils.py +++ b/src/cryptography/utils.py @@ -10,8 +10,6 @@ import inspect import sys import warnings -from packaging.version import parse - # Several APIs were deprecated with no specific end-of-life date because of the # ubiquity of their use. They should not be removed until we agree on when that @@ -104,11 +102,6 @@ else: return len(bin(x)) - (2 + (x <= 0)) -def _version_check(version, required_version): - # This is used to check if we support update_into on CipherContext. - return parse(version) >= parse(required_version) - - class _DeprecatedValue(object): def __init__(self, value, message, warning_class): self.value = value |
