fatal_errors -> fast_fail
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 9 Dec 2010 11:05:52 +0000 (03:05 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 9 Dec 2010 11:05:52 +0000 (03:05 -0800)
Cython/Compiler/CmdLine.py
Cython/Compiler/Errors.py
Cython/Compiler/Options.py

index 0b0c8244bedc529729f00b9360951bd00fc7c6a1..73bbc8b460df2dcfe82be852cbd8b985e6b541f9 100644 (file)
@@ -35,7 +35,7 @@ Options:
   --embed                        Embed the Python interpreter in a main() method.
   -2                             Compile based on Python-2 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
 """
 
@@ -118,8 +118,8 @@ def parse_command_line(args):
                 options.language_level = 2
             elif option == '-3':
                 options.language_level = 3
-            elif option == "--fatal-errors":
-                Options.fatal_errors = True
+            elif option == "--fast-fail":
+                Options.fast_fail = True
             elif option in ("-X", "--directive"):
                 try:
                     options.compiler_directives = Options.parse_directive_list(
index 38232ba7fb7f4c4534b7fbfd9258f2461e31192c..e3f1233504186d30be3036fd312fd031c15c8160 100644 (file)
@@ -144,7 +144,7 @@ def report_error(err):
             except UnicodeEncodeError:
                 echo_file.write(line.encode('ASCII', 'replace'))
         num_errors = num_errors + 1
-        if Options.fatal_errors:
+        if Options.fast_fail:
             raise AbortError, "fatal errors"
 
 def error(position, message):
index 9709dc38ef9f35bacb546f37d013a9b6d806b9d2..f1de199e3deeeb05896119a1e2f6fa64288e6b45 100644 (file)
@@ -20,7 +20,7 @@ annotate = 0
 
 # This will abort the compilation on the first error occured rather than trying
 # 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(...)" 
 # to "for i from ..." when i is a cdef'd integer type, and the direction