explicitly define symbols to import instead of 'import *'

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2011-05-09 22:43:03 +02:00
parent b25a72f8c8
commit a39128516b
4 changed files with 4 additions and 6 deletions

View File

@ -24,9 +24,7 @@ import subprocess
from offlineimap.ui import getglobalui
import threading
from offlineimap import OfflineImapError
from offlineimap.imaplib2 import *
# Import the symbols we need that aren't exported by default
from offlineimap.imaplib2 import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
from offlineimap.imaplib2 import IMAP4, IMAP4_SSL, zlib, IMAP4_PORT, InternalDate, Mon2num
try:
import ssl

View File

@ -18,7 +18,7 @@
from offlineimap import imaplibutil, imaputil, threadutil, OfflineImapError
from offlineimap.ui import getglobalui
from threading import *
from threading import Lock, BoundedSemaphore
import thread
import time
import hmac

View File

@ -18,7 +18,7 @@
import os.path
import re # for folderfilter
from threading import *
from threading import Lock
boxes = {}
config = None

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, Thread, BoundedSemaphore
from Queue import Queue, Empty
import traceback
import thread