diff options
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r-- | Lib/distutils/core.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 25d91baa0f..2bfe66aa2f 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -127,8 +127,9 @@ def setup (**attrs): if _setup_stop_after == "config": return dist - # Parse the command line; any command-line errors are the end user's - # fault, so turn them into SystemExit to suppress tracebacks. + # Parse the command line and override config files; any + # command-line errors are the end user's fault, so turn them into + # SystemExit to suppress tracebacks. try: ok = dist.parse_command_line() except DistutilsArgError as msg: @@ -147,7 +148,7 @@ def setup (**attrs): dist.run_commands() except KeyboardInterrupt: raise SystemExit("interrupted") - except (IOError, os.error) as exc: + except OSError as exc: if DEBUG: sys.stderr.write("error: %s\n" % (exc,)) raise |