diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-02-08 06:45:39 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-02-08 06:45:39 (GMT) |
commit | 80722d92812c1276b0d74ca49a21b7351ee74a69 (patch) | |
tree | edfc9cd769a78d95d2a391047cb783032b6d1645 /src/engine/SCons/Tool/packaging | |
parent | 7d4a9fd9e8e1b6cc955c9cb08ea2d28d4a051052 (diff) | |
download | SCons-80722d92812c1276b0d74ca49a21b7351ee74a69.zip SCons-80722d92812c1276b0d74ca49a21b7351ee74a69.tar.gz SCons-80722d92812c1276b0d74ca49a21b7351ee74a69.tar.bz2 |
2to3 sez, "rewrite map() as loop"
Diffstat (limited to 'src/engine/SCons/Tool/packaging')
-rw-r--r-- | src/engine/SCons/Tool/packaging/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/packaging/__init__.py b/src/engine/SCons/Tool/packaging/__init__.py index 02be24f..3854fea 100644 --- a/src/engine/SCons/Tool/packaging/__init__.py +++ b/src/engine/SCons/Tool/packaging/__init__.py @@ -169,7 +169,9 @@ def Package(env, target=None, source=None, **kw): args,varargs,varkw,defaults=getargspec(packager.package) if defaults!=None: args=args[:-len(defaults)] # throw away arguments with default values - map(args.remove, 'env target source'.split()) + args.remove('env') + args.remove('target') + args.remove('source') # now remove any args for which we have a value in kw. #args=[x for x in args if not kw.has_key(x)] args=filter(lambda x, kw=kw: not kw.has_key(x), args) |