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 from offlineimap.ui import getglobalui
import threading import threading
from offlineimap import OfflineImapError from offlineimap import OfflineImapError
from offlineimap.imaplib2 import * from offlineimap.imaplib2 import IMAP4, IMAP4_SSL, zlib, IMAP4_PORT, InternalDate, Mon2num
# Import the symbols we need that aren't exported by default
from offlineimap.imaplib2 import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
try: try:
import ssl import ssl

View File

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

View File

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

View File

@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # 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 from Queue import Queue, Empty
import traceback import traceback
import thread import thread