|
@ -12,9 +12,7 @@ |
|
|
from __future__ import with_statement |
|
|
from __future__ import with_statement |
|
|
import contextlib |
|
|
import contextlib |
|
|
import cookielib |
|
|
import cookielib |
|
|
import ctypes |
|
|
|
|
|
import datetime |
|
|
import datetime |
|
|
import email.utils |
|
|
|
|
|
import gzip |
|
|
import gzip |
|
|
import htmlentitydefs |
|
|
import htmlentitydefs |
|
|
import httplib |
|
|
import httplib |
|
@ -34,6 +32,13 @@ import urllib2 |
|
|
import warnings |
|
|
import warnings |
|
|
import zlib |
|
|
import zlib |
|
|
|
|
|
|
|
|
|
|
|
if os.name == 'nt': |
|
|
|
|
|
import ctypes |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
import email.utils |
|
|
|
|
|
except ImportError: # Python 2.4 |
|
|
|
|
|
import email.Utils |
|
|
try: |
|
|
try: |
|
|
import cStringIO as StringIO |
|
|
import cStringIO as StringIO |
|
|
except ImportError: |
|
|
except ImportError: |
|
|