Remove python<2.6 import workarounds (set & ssl)

'set' is builtin since python2.6, so remove the imports. Also 'ssl' exists
since 2.6 and has everything we need, so no need for conditional import
tests here anymore.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-02-05 12:17:02 +01:00
parent 93f4a19778
commit 81fc20c7ca
7 changed files with 6 additions and 31 deletions

View File

@@ -19,6 +19,7 @@ import os
import fcntl
import re
import socket
import ssl
import time
import subprocess
import threading
@@ -28,11 +29,6 @@ from offlineimap.ui import getglobalui
from offlineimap import OfflineImapError
from offlineimap.imaplib2 import IMAP4, IMAP4_SSL, zlib, IMAP4_PORT, InternalDate, Mon2num
try:
import ssl
except ImportError:
#fails on python <2.6
pass
class UsefulIMAPMixIn(object):
def getselectedfolder(self):