diff MoinMoin/caching.py @ 1793:2a4caa295346

Eclipse PyDev Check: fixed lots of its errors and warnings
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 23 Feb 2007 13:06:42 +0100
parents 6dd2e29acffe
children b5e94fec8669
line wrap: on
line diff
--- a/MoinMoin/caching.py	Fri Feb 23 09:38:23 2007 +0100
+++ b/MoinMoin/caching.py	Fri Feb 23 13:06:42 2007 +0100
@@ -9,17 +9,7 @@
 import os
 import tempfile
 
-# cPickle can encode normal and Unicode strings
-# see http://docs.python.org/lib/node66.html
-try:
-    import cPickle as pickle
-except ImportError:
-    import pickle
-
-# Set pickle protocol, see http://docs.python.org/lib/node64.html
-PICKLE_PROTOCOL = pickle.HIGHEST_PROTOCOL
-
-from MoinMoin.util import filesys, lock
+from MoinMoin.util import filesys, lock, pickle, PICKLE_PROTOCOL
 
 
 class CacheError(Exception):