cleanup import satements

- conform to PEP8
- explicitly define symbols instead of 'import *'
- remove unused import

Reviewed-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2011-05-11 18:25:13 +02:00
parent a39128516b
commit 8a34edc8ca
5 changed files with 9 additions and 6 deletions

View File

@ -20,8 +20,12 @@ from offlineimap.repository.Base import BaseRepository
from offlineimap import folder, imaputil, imapserver from offlineimap import folder, imaputil, imapserver
from offlineimap.folder.UIDMaps import MappedIMAPFolder from offlineimap.folder.UIDMaps import MappedIMAPFolder
from offlineimap.threadutil import ExitNotifyThread from offlineimap.threadutil import ExitNotifyThread
import re, types, os, netrc, errno from threading import Event
from threading import * import re
import types
import os
import netrc
import errno
class IMAPRepository(BaseRepository): class IMAPRepository(BaseRepository):
def __init__(self, reposname, account): def __init__(self, reposname, account):

View File

@ -21,7 +21,7 @@ import time
import sys import sys
import os import os
import signal import signal
import curses, curses.panel, curses.textpad, curses.wrapper import curses
from Blinkenlights import BlinkenBase from Blinkenlights import BlinkenBase
from UIBase import UIBase from UIBase import UIBase
import offlineimap import offlineimap

View File

@ -19,7 +19,7 @@
from UIBase import UIBase from UIBase import UIBase
from getpass import getpass from getpass import getpass
import sys import sys
from threading import * from threading import Lock, currentThread
class TTYUI(UIBase): class TTYUI(UIBase):
def __init__(s, config, verbose = 0): def __init__(s, config, verbose = 0):

View File

@ -22,7 +22,6 @@ import sys
import traceback import traceback
import threading import threading
from StringIO import StringIO from StringIO import StringIO
from Queue import Empty
import offlineimap import offlineimap
debugtypes = {'':'Other offlineimap related sync messages', debugtypes = {'':'Other offlineimap related sync messages',

View File

@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from threading import * from threading import Lock, currentThread
import traceback import traceback
logfile = open("/tmp/logfile", "wt") logfile = open("/tmp/logfile", "wt")
loglock = Lock() loglock = Lock()