Commit b19c2d88 authored by Guido van Rossum's avatar Guido van Rossum

Touch up error handling.

parent 8f926566
......@@ -111,7 +111,7 @@ def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "hmnx")
except getopt.error, msg:
sys.stderr.write("%s\n" % str(msg))
sys.stderr.write("\n%s\n" % str(msg))
sys.stderr.write(
"usage: driver.py [-h|-x] [-m] [-n] [file]\n")
sys.stderr.write("-h/-x -- HTML/XML input (default auto)\n")
......
......@@ -143,6 +143,8 @@ def main():
driver.main()
finally:
sys.stdout, sys.argv = save
except SystemExit:
raise
except:
errors = 1
if quiet:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment