equal
deleted
inserted
replaced
23 import logging |
23 import logging |
24 import os |
24 import os |
25 import sys |
25 import sys |
26 import warnings |
26 import warnings |
27 import zlib |
27 import zlib |
28 if (2, 7) <= sys.version_info < (2, 7, 4): |
28 |
|
29 warnings.filterwarnings('ignore', category=UserWarning, |
|
30 message='.*was already imported', |
|
31 module='.*pygments') |
|
32 |
|
33 |
|
34 from six import PY2, binary_type, text_type |
|
35 from six.moves import builtins |
|
36 |
|
37 if PY2: |
29 # http://bugs.python.org/issue10211 |
38 # http://bugs.python.org/issue10211 |
30 from StringIO import StringIO as BytesIO |
39 from StringIO import StringIO as BytesIO |
31 else: |
40 else: |
32 from io import BytesIO |
41 from io import BytesIO |
33 |
|
34 from six import PY2, binary_type, text_type |
|
35 from six.moves import builtins, cPickle as pickle |
|
36 |
42 |
37 from logilab.common.deprecation import deprecated |
43 from logilab.common.deprecation import deprecated |
38 from logilab.common.logging_ext import set_log_methods |
44 from logilab.common.logging_ext import set_log_methods |
39 from yams.constraints import BASE_CONVERTERS, BASE_CHECKERS |
45 from yams.constraints import BASE_CONVERTERS, BASE_CHECKERS |
40 |
46 |