cubicweb/__init__.py
changeset 11279 e4f11ef1face
parent 11274 d0f6fe008ec4
parent 11249 0ff4c02a1871
child 11281 2cb8b383a519
--- a/cubicweb/__init__.py	Fri Jun 10 16:45:20 2016 +0200
+++ b/cubicweb/__init__.py	Thu Jun 16 15:53:01 2016 +0200
@@ -25,15 +25,21 @@
 import sys
 import warnings
 import zlib
-if (2, 7) <= sys.version_info < (2, 7, 4):
+
+warnings.filterwarnings('ignore', category=UserWarning,
+                        message='.*was already imported',
+                        module='.*pygments')
+
+
+from six import PY2, binary_type, text_type
+from six.moves import builtins
+
+if PY2:
     # http://bugs.python.org/issue10211
     from StringIO import StringIO as BytesIO
 else:
     from io import BytesIO
 
-from six import PY2, binary_type, text_type
-from six.moves import builtins, cPickle as pickle
-
 from logilab.common.deprecation import deprecated
 from logilab.common.logging_ext import set_log_methods
 from yams.constraints import BASE_CONVERTERS, BASE_CHECKERS