summaryrefslogtreecommitdiff
path: root/M2Crypto/__init__.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-11-14 19:37:29 +0100
committerMatěj Cepl <mcepl@cepl.eu>2015-11-18 14:28:02 +0100
commit430958e0db0d187fb1d18d5fc848bf8a0ad20f0a (patch)
tree0ae09f2aa58dfe07cfbb747efa7b980c4b9416e5 /M2Crypto/__init__.py
parenteeb1dc6c47a74c2b604cbbaed8b38e3cd88b5b9b (diff)
downloadm2crypto-430958e0db0d187fb1d18d5fc848bf8a0ad20f0a.tar.gz
Python < 2.6 is not supported anymore, so we don’t need to work around it.
Diffstat (limited to 'M2Crypto/__init__.py')
-rw-r--r--M2Crypto/__init__.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/M2Crypto/__init__.py b/M2Crypto/__init__.py
index 02f4d28..9215d3f 100644
--- a/M2Crypto/__init__.py
+++ b/M2Crypto/__init__.py
@@ -43,10 +43,7 @@ import m2urllib
# Backwards compatibility.
urllib2 = m2urllib
-import sys
-if sys.version_info >= (2,4):
- import m2urllib2
-del sys
+import m2urllib2
import ftpslib
import httpslib
@@ -54,7 +51,7 @@ import m2xmlrpclib
import threading
import util
-encrypt=1
-decrypt=0
+encrypt = 1
+decrypt = 0
_m2crypto.lib_init()