summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 3b83d9b84..5a4b64f51 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -5344,7 +5344,7 @@ class portdbapi(dbapi):
if doregen and mylocation==self.mysettings["PORTDIR"] and metacachedir and self.metadb[cat].has_key(pkg):
metadata=self.metadb[cat][pkg]
- if not metadata.has_key("EAPI") or metadata["EAPI"].strip() == '':
+ if "EAPI" not in metadata or not metadata["EAPI"].strip():
metadata["EAPI"] = "0"
if not eapi_is_supported(metadata["EAPI"]):