Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Unified Diff: Lib/distutils/core.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/ctypes/test/test_byteswap.py ('k') | Lib/distutils/spawn.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/distutils/core.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/distutils/core.py Mon Jul 25 09:47:18 2011 -0400
@@ -8,8 +8,7 @@
__revision__ = "$Id$"
-import os
-import sys
+import sys, os
from distutils.debug import DEBUG
from distutils.errors import *
@@ -216,8 +215,11 @@
sys.argv[0] = script_name
if script_args is not None:
sys.argv[1:] = script_args
- with open(script_name, 'rb') as f:
+ f = open(script_name)
+ try:
exec(f.read(), g, l)
+ finally:
+ f.close()
finally:
sys.argv = save_argv
_setup_stop_after = None
« no previous file with comments | « Lib/ctypes/test/test_byteswap.py ('k') | Lib/distutils/spawn.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+