From a13f1049893f07d3a77474d77214a24eee3cb75b Mon Sep 17 00:00:00 2001 From: Stefan Zimmermann Date: Tue, 1 Apr 2014 07:28:31 +0000 Subject: test: site_scons/site_init: list() globals keys for looping to allow changes. --- test/site_scons/site_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/site_scons/site_init.py b/test/site_scons/site_init.py index 9f2e411..45201ac 100644 --- a/test/site_scons/site_init.py +++ b/test/site_scons/site_init.py @@ -51,7 +51,7 @@ import os.path import re special = [] -for x in globals().keys(): +for x in list(globals().keys()): if re.match("__[^_]+__", x): if x in ("__builtins__", "__package__",): # Ignore certain keywords, as they are known to be added by Python -- cgit v0.12