[source/native] cPickle is available in all supported pythons
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 03 Jun 2014 18:00:53 +0200
changeset 9932 c493767679b2
parent 9931 013dd868e6da
child 9933 3674f249ab1d
[source/native] cPickle is available in all supported pythons
server/sources/native.py
--- a/server/sources/native.py	Tue Jul 22 18:16:23 2014 +0200
+++ b/server/sources/native.py	Tue Jun 03 18:00:53 2014 +0200
@@ -25,12 +25,8 @@
 """
 __docformat__ = "restructuredtext en"
 
-try:
-    from cPickle import loads, dumps
-    import cPickle as pickle
-except ImportError:
-    from pickle import loads, dumps
-    import pickle
+from cPickle import loads, dumps
+import cPickle as pickle
 from threading import Lock
 from datetime import datetime
 from base64 import b64decode, b64encode