[PATCH 1/2] cleanup: remove uneeded imports
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Mon May 9 21:49:29 BST 2011
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
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
--
1.7.5.1.354.g761178
More information about the OfflineIMAP-project
mailing list