diff options
| author | Steven Knight <knight@baldmt.com> | 2010-04-20 06:00:36 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2010-04-20 06:00:36 (GMT) |
| commit | 8a3e19c85c853ad7ee45b45e4afb63a617946145 (patch) | |
| tree | d3f8269d0e8c1d76786aa3a415ba616b18c5d04e /src/engine/SCons/Environment.py | |
| parent | 7cc7b7c437b79c27354859b1d81f8338a6ce7a2d (diff) | |
| download | SCons-8a3e19c85c853ad7ee45b45e4afb63a617946145.zip SCons-8a3e19c85c853ad7ee45b45e4afb63a617946145.tar.gz SCons-8a3e19c85c853ad7ee45b45e4afb63a617946145.tar.bz2 | |
Rewrite uses of reduce(), which is being deprecated for Python 3.x.
Diffstat (limited to 'src/engine/SCons/Environment.py')
| -rw-r--r-- | src/engine/SCons/Environment.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index cd637bb..d9db852 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -1507,7 +1507,9 @@ class Base(SubstitutionEnvironment): else: tdlist.append((target.split(), depends.split())) if only_one: - targets = reduce(lambda x, y: x+y, [p[0] for p in tdlist]) + targets = [] + for td in tdlist: + targets.extend(td[0]) if len(targets) > 1: raise SCons.Errors.UserError( "More than one dependency target found in `%s': %s" |
