aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/__init__.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-03-29 20:46:33 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-03-29 20:46:33 -0400
commit0857894306d26a655fe06326cd244b4e182c94bf (patch)
tree7b7708d6943c21a91fec73a1de16e93b104e7a17 /src/cryptography/__init__.py
parentd0f74e1aabdbabd7a31cc2b11a7496d0f501fc4c (diff)
downloadcryptography-0857894306d26a655fe06326cd244b4e182c94bf.tar.gz
cryptography-0857894306d26a655fe06326cd244b4e182c94bf.tar.bz2
cryptography-0857894306d26a655fe06326cd244b4e182c94bf.zip
Emit a warning on Python 2.6
Diffstat (limited to 'src/cryptography/__init__.py')
-rw-r--r--src/cryptography/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cryptography/__init__.py b/src/cryptography/__init__.py
index 6da0b383..985ebd6f 100644
--- a/src/cryptography/__init__.py
+++ b/src/cryptography/__init__.py
@@ -4,6 +4,9 @@
from __future__ import absolute_import, division, print_function
+import sys
+import warnings
+
from cryptography.__about__ import (
__author__, __copyright__, __email__, __license__, __summary__, __title__,
__uri__, __version__
@@ -14,3 +17,10 @@ __all__ = [
"__title__", "__summary__", "__uri__", "__version__", "__author__",
"__email__", "__license__", "__copyright__",
]
+
+if sys.version_info[:2] == (2, 6):
+ warnings.warn(
+ "Python 2.6 is no longer supported by the Python core team, please "
+ "upgrade your Python.",
+ DeprecationWarning
+ )