summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 9d5b25cf7..3da97fc51 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1479,10 +1479,10 @@ class config:
myflags=[]
for curdb in mydbs:
- if not curdb.has_key(mykey):
+ if mykey not in curdb and mykey != "USE":
continue
#variables are already expanded
- mysplit=curdb[mykey].split()
+ mysplit = curdb.get(mykey, "").split()
if mykey == "USE":
for var in use_expand: