summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/cache/mappings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py
index 38a3bfe34..bd9f082b9 100644
--- a/pym/portage/cache/mappings.py
+++ b/pym/portage/cache/mappings.py
@@ -346,9 +346,10 @@ def slot_dict_class(keys, prefix="_val_"):
return list(self)
def iteritems(self):
+ prefix = self._prefix
for k in self.allowed_keys:
try:
- yield (k, getattr(self, self._prefix + k))
+ yield (k, getattr(self, prefix + k))
except AttributeError:
pass