Commit 4b20838a authored by Robert Bradshaw's avatar Robert Bradshaw

fatal_errors -> fast_fail

parent 75c3536e
...@@ -35,7 +35,7 @@ Options: ...@@ -35,7 +35,7 @@ Options:
--embed Embed the Python interpreter in a main() method. --embed Embed the Python interpreter in a main() method.
-2 Compile based on Python-2 syntax and code semantics. -2 Compile based on Python-2 syntax and code semantics.
-3 Compile based on Python-3 syntax and code semantics. -3 Compile based on Python-3 syntax and code semantics.
--fatal-errors Abort the compilation on the first error --fast-fail Abort the compilation on the first error
-X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive -X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
""" """
...@@ -118,8 +118,8 @@ def parse_command_line(args): ...@@ -118,8 +118,8 @@ def parse_command_line(args):
options.language_level = 2 options.language_level = 2
elif option == '-3': elif option == '-3':
options.language_level = 3 options.language_level = 3
elif option == "--fatal-errors": elif option == "--fast-fail":
Options.fatal_errors = True Options.fast_fail = True
elif option in ("-X", "--directive"): elif option in ("-X", "--directive"):
try: try:
options.compiler_directives = Options.parse_directive_list( options.compiler_directives = Options.parse_directive_list(
......
...@@ -144,7 +144,7 @@ def report_error(err): ...@@ -144,7 +144,7 @@ def report_error(err):
except UnicodeEncodeError: except UnicodeEncodeError:
echo_file.write(line.encode('ASCII', 'replace')) echo_file.write(line.encode('ASCII', 'replace'))
num_errors = num_errors + 1 num_errors = num_errors + 1
if Options.fatal_errors: if Options.fast_fail:
raise AbortError, "fatal errors" raise AbortError, "fatal errors"
def error(position, message): def error(position, message):
......
...@@ -20,7 +20,7 @@ annotate = 0 ...@@ -20,7 +20,7 @@ annotate = 0
# This will abort the compilation on the first error occured rather than trying # This will abort the compilation on the first error occured rather than trying
# to keep going and printing further error messages. # to keep going and printing further error messages.
fatal_errors = False fast_fail = False
# This will convert statements of the form "for i in range(...)" # This will convert statements of the form "for i in range(...)"
# to "for i from ..." when i is a cdef'd integer type, and the direction # to "for i from ..." when i is a cdef'd integer type, and the direction
......
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