Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
58b37a83
Commit
58b37a83
authored
Jul 14, 2013
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #230 from nnemkin/pxd_errors_fix
Do not abort .pxd processing due to previous unrelated errors.
parents
26531b24
f0b06798
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+2
-1
No files found.
Cython/Compiler/Main.py
View file @
58b37a83
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment