diff options
author | Steven Knight <knight@baldmt.com> | 2005-05-13 01:44:10 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-05-13 01:44:10 (GMT) |
commit | f82f4ce830289473187299db9962f819ed74c877 (patch) | |
tree | f9abe466c67b9ca99adb91b2ff25529ca1096230 /src/engine/SCons/Tool | |
parent | f431ccfa16fad1d0db1009eacfdace4f80e9195e (diff) | |
download | SCons-f82f4ce830289473187299db9962f819ed74c877.zip SCons-f82f4ce830289473187299db9962f819ed74c877.tar.gz SCons-f82f4ce830289473187299db9962f819ed74c877.tar.bz2 |
Eliminate multiple calls to os.stat() to fetch file info.
Diffstat (limited to 'src/engine/SCons/Tool')
-rw-r--r-- | src/engine/SCons/Tool/zip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/zip.py b/src/engine/SCons/Tool/zip.py index fe9ce32..f0d4ed0 100644 --- a/src/engine/SCons/Tool/zip.py +++ b/src/engine/SCons/Tool/zip.py @@ -56,7 +56,7 @@ if internal_zip: compression = env.get('ZIPCOMPRESSION', 0) zf = zipfile.ZipFile(str(target[0]), 'w', compression) for s in source: - if os.path.isdir(str(s)): + if s.isdir(): os.path.walk(str(s), visit, zf) else: zf.write(str(s)) |