From b25a72f8c8b216d788225d3bf1796f5f1f6c1e7d Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Mon, 9 May 2011 22:42:15 +0200 Subject: [PATCH] cleanup: remove uneeded imports Signed-off-by: Nicolas Sebrecht --- offlineimap/accounts.py | 3 +-- offlineimap/folder/LocalStatusSQLite.py | 2 +- offlineimap/imapserver.py | 3 --- offlineimap/repository/LocalStatus.py | 1 - 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index 7f26628..a989441 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -15,14 +15,13 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -from offlineimap import threadutil, mbnames, CustomConfig, OfflineImapError +from offlineimap import mbnames, CustomConfig, OfflineImapError from offlineimap.repository import Repository from offlineimap.ui import getglobalui from offlineimap.threadutil import InstanceLimitedThread from subprocess import Popen, PIPE from threading import Event import os -import sys import traceback def getaccountlist(customconfig): diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py index f470599..a57992b 100644 --- a/offlineimap/folder/LocalStatusSQLite.py +++ b/offlineimap/folder/LocalStatusSQLite.py @@ -17,7 +17,7 @@ import os.path import re from threading import Lock -from LocalStatus import LocalStatusFolder, magicline +from LocalStatus import LocalStatusFolder try: import sqlite3 as sqlite except: diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 6e58949..038103c 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -16,7 +16,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -from offlineimap import imaplib2 as imaplib from offlineimap import imaplibutil, imaputil, threadutil, OfflineImapError from offlineimap.ui import getglobalui from threading import * @@ -26,8 +25,6 @@ import hmac import socket import base64 -from StringIO import StringIO -from platform import system from socket import gaierror try: diff --git a/offlineimap/repository/LocalStatus.py b/offlineimap/repository/LocalStatus.py index 7d38596..cc22dd2 100644 --- a/offlineimap/repository/LocalStatus.py +++ b/offlineimap/repository/LocalStatus.py @@ -17,7 +17,6 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA from Base import BaseRepository -from offlineimap import folder from offlineimap.folder.LocalStatus import LocalStatusFolder from offlineimap.folder.LocalStatusSQLite import LocalStatusSQLiteFolder import os