projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1100f5d
)
Do not abort .pxd processing due to previous unrelated errors.
author
Nikita Nemkin
<nikita@nemkin.ru>
Mon, 20 May 2013 18:56:12 +0000
(
00:56
+0600)
committer
Nikita Nemkin
<nikita@nemkin.ru>
Mon, 20 May 2013 18:56:12 +0000
(
00:56
+0600)
Cython/Compiler/Main.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Main.py
b/Cython/Compiler/Main.py
index
44d89ca
..
41019a8
100644
(file)
--- a/
Cython/Compiler/Main.py
+++ b/
Cython/Compiler/Main.py
@@
-290,6
+290,7
@@
class Context(object):
source_filename = source_desc.filename
scope.cpp = self.cpp
# Parse the given source file and return a parse tree.
+ num_errors = Errors.num_errors
try:
f = Utils.open_source_file(source_filename, "rU")
try:
@@
-321,7
+322,7
@@
class Context(object):
"Decoding error, missing or incorrect coding=<encoding-name> "
"at top of source (cannot decode with encoding %r: %s)" % (encoding, msg))
- if Errors.num_errors >
0
:
+ if Errors.num_errors >
num_errors
:
raise CompileError()
return tree