summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index b6f0ae2e3..dacbcebc6 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -1326,8 +1326,8 @@ class LazyItemsDict(UserDict):
memo[id(self)] = result
for k in self:
k_copy = deepcopy(k, memo)
- if k in self.lazy_items:
- lazy_item = self.lazy_items[k]
+ lazy_item = self.lazy_items.get(k)
+ if lazy_item is not None:
if not lazy_item.singleton:
raise TypeError(_unicode_decode("LazyItemsDict " + \
"deepcopy is unsafe with lazy items that are " + \