summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util/__init__.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index 237ede658..b7a6ed133 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -1302,13 +1302,10 @@ class LazyItemsDict(UserDict):
if k in self.lazy_items:
lazy_item = self.lazy_items[k]
if not lazy_item.singleton:
- raise TypeError("LazyItemsDict deepcopy is " + \
- "unsafe with lazy items that " + \
- "are not singletons: %s" % (lazy_item,))
- UserDict.__setitem__(result,
- k_copy, deepcopy(self[k], memo))
- else:
- UserDict.__setitem__(result, k_copy, deepcopy(self[k], memo))
+ raise TypeError(_unicode_decode("LazyItemsDict " + \
+ "deepcopy is unsafe with lazy items that are " + \
+ "not singletons: key=%s value=%s") % (k, lazy_item,))
+ UserDict.__setitem__(result, k_copy, deepcopy(self[k], memo))
return result
class _LazyItem(object):