1
0
mirror of https://github.com/OfflineIMAP/offlineimap.git synced 2024-06-26 07:29:03 +02:00

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.folder.UIDMaps import MappedIMAPFolder
from offlineimap.threadutil import ExitNotifyThread
import re, types, os, netrc, errno
from threading import *
from threading import Event
import re
import types
import os
import netrc
import errno
class IMAPRepository(BaseRepository):
def __init__(self, reposname, account):

View File

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

View File

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

View File

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

View File

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