From: Zac Medico Date: Sun, 18 Mar 2007 19:54:21 +0000 (-0000) Subject: Appropriately use globals() instead of locals() as suggested by marienz. X-Git-Tag: v2.2_pre1~1562 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c030d162406ab4402770c8512a7164d1eddc0324;p=portage.git Appropriately use globals() instead of locals() as suggested by marienz. svn path=/main/trunk/; revision=6246 --- diff --git a/pym/portage/output.py b/pym/portage/output.py index 386d4c8e5..bbac9d97d 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -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: """ diff --git a/pym/portage/tests/bin/setup_env.py b/pym/portage/tests/bin/setup_env.py index a69a19ec6..1f2491701 100644 --- a/pym/portage/tests/bin/setup_env.py +++ b/pym/portage/tests/bin/setup_env.py @@ -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)