Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0857894

Browse filesBrowse files
committed
Emit a warning on Python 2.6
1 parent d0f74e1 commit 0857894
Copy full SHA for 0857894

File tree

Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed

‎src/cryptography/__init__.py

Copy file name to clipboardExpand all lines: src/cryptography/__init__.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
from __future__ import absolute_import, division, print_function
66

7+
import sys
8+
import warnings
9+
710
from cryptography.__about__ import (
811
__author__, __copyright__, __email__, __license__, __summary__, __title__,
912
__uri__, __version__
@@ -14,3 +17,10 @@
1417
"__title__", "__summary__", "__uri__", "__version__", "__author__",
1518
"__email__", "__license__", "__copyright__",
1619
]
20+
21+
if sys.version_info[:2] == (2, 6):
22+
warnings.warn(
23+
"Python 2.6 is no longer supported by the Python core team, please "
24+
"upgrade your Python.",
25+
DeprecationWarning
26+
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.