Appropriately use globals() instead of locals() as suggested by marienz.
authorZac Medico <zmedico@gentoo.org>
Sun, 18 Mar 2007 19:54:21 +0000 (19:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 18 Mar 2007 19:54:21 +0000 (19:54 -0000)
svn path=/main/trunk/; revision=6246

pym/portage/output.py
pym/portage/tests/bin/setup_env.py

index 386d4c8e518eb3040f97900b5e49626fd35bdb95..bbac9d97dc36e4e0970d7565702a5b99681ae3ae 100644 (file)
@@ -235,7 +235,7 @@ def create_color_func(color_key):
        return derived_func
 
 for c in compat_functions_colors:
-       locals()[c] = create_color_func(c)
+       globals()[c] = create_color_func(c)
 
 class EOutput:
        """
index a69a19ec6785a53ff877caa8ebd8ead765b4623f..1f249170176bf92fe2619acf11e5ac7b2e244686 100644 (file)
@@ -66,4 +66,4 @@ for bin in os.listdir(bindir):
           bin.startswith("new") or \
           bin.startswith("prep") or \
           bin in ["ecompress","ecompressdir","fowners","fperms"]:
-               locals()[bin] = create_portage_wrapper(bin)
+               globals()[bin] = create_portage_wrapper(bin)