summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/vartree.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index e9f2cf538..d438cbee0 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -20,9 +20,13 @@ from portage import listdir, dep_expand, config, flatten, key_expand, \
doebuild_environment, doebuild, env_update, dircache, \
abssymlink, movefile, bsd_chflags
-import os, sys, stat, cPickle, errno, commands, copy, time
+import os, sys, stat, errno, commands, copy, time
from itertools import izip
+try:
+ import cPickle
+except ImportError:
+ import pickle as cPickle
class PreservedLibsRegistry(object):
""" This class handles the tracking of preserved library objects """