From bf08bb314dec46fc4c7a2f3b5aba01c1f1596ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 29 Aug 2020 21:20:31 +0200 Subject: [PATCH] Removed not used imports This patch removes the import lines not used --- offlineimap/imaputil.py | 1 - offlineimap/localeval.py | 5 ----- offlineimap/repository/Maildir.py | 1 - test/OLItest/TestRunner.py | 3 --- test/tests/test_00_imaputil.py | 1 - test/tests/test_01_basic.py | 2 -- test/tests/test_02_MappedIMAP.py | 2 -- 7 files changed, 15 deletions(-) diff --git a/offlineimap/imaputil.py b/offlineimap/imaputil.py index 7df867c..c9ff7d0 100644 --- a/offlineimap/imaputil.py +++ b/offlineimap/imaputil.py @@ -16,7 +16,6 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import re -import string import binascii import codecs from offlineimap.ui import getglobalui diff --git a/offlineimap/localeval.py b/offlineimap/localeval.py index 7cc4e1d..5057a96 100644 --- a/offlineimap/localeval.py +++ b/offlineimap/localeval.py @@ -18,11 +18,6 @@ import imp -try: - import errno -except: - pass - class LocalEval(object): """Here is a powerfull but very dangerous option, of course.""" diff --git a/offlineimap/repository/Maildir.py b/offlineimap/repository/Maildir.py index 3cd9370..bbecee7 100644 --- a/offlineimap/repository/Maildir.py +++ b/offlineimap/repository/Maildir.py @@ -16,7 +16,6 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import os -from stat import * from offlineimap import folder from offlineimap.ui import getglobalui from offlineimap.error import OfflineImapError diff --git a/test/OLItest/TestRunner.py b/test/OLItest/TestRunner.py index f85d5f5..c337bee 100644 --- a/test/OLItest/TestRunner.py +++ b/test/OLItest/TestRunner.py @@ -13,11 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import unittest -import logging import os import re -import sys import shutil import subprocess import tempfile diff --git a/test/tests/test_00_imaputil.py b/test/tests/test_00_imaputil.py index f5f58de..ab11551 100644 --- a/test/tests/test_00_imaputil.py +++ b/test/tests/test_00_imaputil.py @@ -19,7 +19,6 @@ import logging from test.OLItest import OLITestLib from offlineimap import imaputil from offlineimap.ui import UI_LIST, setglobalui -from offlineimap.CustomConfig import CustomConfigParser # Things need to be setup first, usually setup.py initializes everything. diff --git a/test/tests/test_01_basic.py b/test/tests/test_01_basic.py index 7fd408d..5e02edf 100644 --- a/test/tests/test_01_basic.py +++ b/test/tests/test_01_basic.py @@ -13,10 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import random import unittest import logging -import os, sys from test.OLItest import OLITestLib # Things need to be setup first, usually setup.py initializes everything. diff --git a/test/tests/test_02_MappedIMAP.py b/test/tests/test_02_MappedIMAP.py index 68e7c3a..121750f 100644 --- a/test/tests/test_02_MappedIMAP.py +++ b/test/tests/test_02_MappedIMAP.py @@ -13,10 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import random import unittest import logging -import os, sys from test.OLItest import OLITestLib # Things need to be setup first, usually setup.py initializes everything.