Initial revision

This commit is contained in:
Hans Lambermont
2002-10-12 11:37:38 +00:00
commit 12315f4d0e
1699 changed files with 444708 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
'''
Make either cPickle or pickle available as the virtual
module mcf.utils.pickle. This allows you to use a single
import statement:
from mcf.utils import extpkl, pickle
and then use that pickle, knowing that you have the best
available pickling engine.
'''
defaultset = ('import cPickle', 'cPickle')
import sys, mcf.utils
from mcf.utils import cpickle_extend
try:
import cPickle
pickle = cPickle
except:
import pickle
sys.modules['mcf.utils.pickle'] = mcf.utils.pickle = pickle