summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 4f8c9423c..547085c24 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1414,14 +1414,8 @@ class config:
global db, root
self._use = autouse(db[root]["vartree"], *self._pargs, **self._kwargs)
return self._use
- if isinstance(self.configdict["auto"],
- portage_util.LazyItemsDict):
- lazy_values = self.configdict["auto"]
- else:
- lazy_values = portage_util.LazyItemsDict()
- lazy_values.update(self.configdict["auto"])
- lazy_values.addLazyItem("USE", LazyAutouse(use_cache=use_cache))
- self.configdict["auto"] = lazy_values
+ self.configdict["auto"] = portage_util.LazyItemsDict(self.configdict["auto"])
+ self.configdict["auto"].addLazyItem("USE", LazyAutouse(use_cache=use_cache))
else:
self.configdict["auto"]["USE"]=""
else: