summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/util/_dyn_libs/PreservedLibsRegistry.py')
-rw-r--r--pym/portage/util/_dyn_libs/PreservedLibsRegistry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py b/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py
index d774f8067..d3d100f18 100644
--- a/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py
+++ b/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py
@@ -92,13 +92,13 @@ class PreservedLibsRegistry(object):
# content is empty if it's an empty lock file
if content:
try:
- self._data = pickle.loads(content)
+ self._data = json.loads(_unicode_decode(content,
+ encoding=_encodings['repo.content'], errors='strict'))
except SystemExit:
raise
except Exception as e:
try:
- self._data = json.loads(_unicode_decode(content,
- encoding=_encodings['repo.content'], errors='strict'))
+ self._data = pickle.loads(content)
except SystemExit:
raise
except Exception: