summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index 8b110f8a8..b5ae524b0 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -498,7 +498,9 @@ def getconfig(mycfg, tolerant=0, allow_sourcing=False, expand=True):
#cache expansions of constant strings
cexpand={}
-def varexpand(mystring, mydict={}):
+def varexpand(mystring, mydict=None):
+ if mydict is None:
+ mydict = {}
newstring = cexpand.get(" "+mystring, None)
if newstring is not None:
return newstring