projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf07e2
)
Optimize LazyItemsDict.__deepcopy__().
v2.1.9.24
author
Zac Medico
<zmedico@gentoo.org>
Sun, 31 Oct 2010 18:15:00 +0000
(11:15 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 31 Oct 2010 18:15:55 +0000
(11:15 -0700)
pym/portage/util/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/util/__init__.py
b/pym/portage/util/__init__.py
index b7a6ed133c46a463564c8a127063911605efe51e..6c39f895221b8ff379331cf85ee7f2345c5066ad 100644
(file)
--- a/
pym/portage/util/__init__.py
+++ b/
pym/portage/util/__init__.py
@@
-1299,8
+1299,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 " + \