]> code.delx.au - offlineimap/commitdiff
Added patch for Python 2.6 ssl
authorJohn Goerzen <jgoerzen@complete.org>
Thu, 2 Jul 2009 01:49:20 +0000 (20:49 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Thu, 2 Jul 2009 01:49:20 +0000 (20:49 -0500)
offlineimap/imaplibutil.py

index 5fdab910e3dd67a58e79785b969a9ec4c96483ba..836c86fff75cec2fc1f93bcde91d04bd07dfe098 100644 (file)
@@ -23,6 +23,9 @@ from offlineimap.imaplib2 import *
 # Import the symbols we need that aren't exported by default
 from offlineimap.imaplib2 import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
 
+# ssl is new in python 2.6
+if (sys.version_info[0] == 2 and sys.version_info[1] >= 6) or sys.version_info[0] >= 3:
+    import ssl
 
 class IMAP4_Tunnel(IMAP4):
     """IMAP4 client class over a tunnel