summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 22479c1f9..5cceb6556 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -5422,8 +5422,7 @@ class portdbapi(dbapi):
if cache_me:
aux_cache = {}
- mydata.setdefault("EAPI", "0")
- if not mydata["EAPI"]:
+ if not mydata.setdefault("EAPI", "0"):
mydata["EAPI"] = "0"
for x in self._aux_cache_keys:
aux_cache[x] = mydata.get(x, "")