commit | 9b1f5a4740f227c78d9f2c4be8dd741992007a3a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 02 18:59:36 2008 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 02 18:59:36 2008 +0000 |
tree | 806f25f97347c727de9814e9d6d39cdca1badb34 | |
parent | ff36b2ce00af0d875362868d12fe86ffc87d0070 [diff] |
Patch #1696. Don't attempt to call None.close() in dry-run mode.
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index bda4480..d26fe94 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py
@@ -111,7 +111,8 @@ if f: f.close() else: - f.close() + if f: + f.close() self.copy_file(script, outfile) if os.name == 'posix':