diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-03-25 04:14:28 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-03-25 04:14:28 (GMT) |
commit | 22d352500f1cd6bd0c53d788a5dc44a1fefa676e (patch) | |
tree | 0984fd581082c27cfbfbb7f94d5751b0e6fd2741 /bench/lvars-gvars.py | |
parent | 75ac32ac8e32076e25b72a19eb56340cc585fa4e (diff) | |
download | SCons-22d352500f1cd6bd0c53d788a5dc44a1fefa676e.zip SCons-22d352500f1cd6bd0c53d788a5dc44a1fefa676e.tar.gz SCons-22d352500f1cd6bd0c53d788a5dc44a1fefa676e.tar.bz2 |
Move 2.0 changes collected in branches/pending back to trunk for further
development. Note that this set of changes is NOT backward-compatible;
the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
Diffstat (limited to 'bench/lvars-gvars.py')
-rw-r--r-- | bench/lvars-gvars.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/lvars-gvars.py b/bench/lvars-gvars.py index 724b7a2..bdb09ef 100644 --- a/bench/lvars-gvars.py +++ b/bench/lvars-gvars.py @@ -19,7 +19,7 @@ def Func1(var, gvars, lvars): def Func2(var, gvars, lvars): """lvars has_key(), gvars try:-except:""" for i in IterationList: - if lvars.has_key(var): + if var in lvars: x = lvars[var] else: try: @@ -30,9 +30,9 @@ def Func2(var, gvars, lvars): def Func3(var, gvars, lvars): """lvars has_key(), gvars has_key()""" for i in IterationList: - if lvars.has_key(var): + if var in lvars: x = lvars[var] - elif gvars.has_key(var): + elif var in gvars: x = gvars[var] else: x = '' |