From 1e392ab1d9efaa57fe61c6c0fe943edd4a2ed9bd Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 29 Oct 2015 13:49:48 +0900 Subject: do the deprecation dance for the twelfth release --- src/cryptography/exceptions.py | 11 ----------- src/cryptography/utils.py | 3 +-- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/cryptography/exceptions.py b/src/cryptography/exceptions.py index 3bf8a75b..4917e535 100644 --- a/src/cryptography/exceptions.py +++ b/src/cryptography/exceptions.py @@ -57,14 +57,3 @@ class InternalError(Exception): class InvalidKey(Exception): pass - - -InvalidToken = utils.deprecated( - twofactor.InvalidToken, - __name__, - ( - "The InvalidToken exception has moved to the " - "cryptography.hazmat.primitives.twofactor module" - ), - utils.DeprecatedIn09 -) diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py index dbd961f7..4449e85a 100644 --- a/src/cryptography/utils.py +++ b/src/cryptography/utils.py @@ -12,8 +12,7 @@ import sys import warnings -DeprecatedIn09 = DeprecationWarning -DeprecatedIn10 = PendingDeprecationWarning +DeprecatedIn10 = DeprecationWarning def read_only_property(name): -- cgit v1.2.3