Re: [gentoo-portage-dev] [PATCH] import cPickle as pickle

2008-09-23 Thread Zac Medico
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ali Polatel wrote: > The attached patch makes how we import cPickle and pickle consistent. > Importing it like: > try: > import cPickle as pickle > except ImportError: > import pickle > eases 2to3's job because cPickle won't exist in py3k and 2

[gentoo-portage-dev] [PATCH] import cPickle as pickle

2008-09-23 Thread Ali Polatel
The attached patch makes how we import cPickle and pickle consistent. Importing it like: try: import cPickle as pickle except ImportError: import pickle eases 2to3's job because cPickle won't exist in py3k and 2to3 does s/cPickle/pickle. This is a patch to reduce the size of 2to3 patches¹