minor code cleanup
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 20 Apr 2013 12:01:22 +0000 (14:01 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 20 Apr 2013 12:01:22 +0000 (14:01 +0200)
Cython/Compiler/Main.py

index 33db288..44d89ca 100644 (file)
@@ -322,7 +322,7 @@ class Context(object):
                   "at top of source (cannot decode with encoding %r: %s)" % (encoding, msg))
 
         if Errors.num_errors > 0:
-            raise CompileError
+            raise CompileError()
         return tree
 
     def extract_module_name(self, path, options):