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
bc9cdf44
Commit
bc9cdf44
authored
Nov 24, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error handling in sequential cython runs
parent
bda5bac1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Cython/Compiler/Errors.py
Cython/Compiler/Errors.py
+8
-0
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+1
-0
No files found.
Cython/Compiler/Errors.py
View file @
bc9cdf44
...
...
@@ -201,3 +201,11 @@ def release_errors(ignore=False):
def
held_errors
():
return
error_stack
[
-
1
]
# this module needs a redesign to support parallel cythonisation, but
# for now, the following works at least in sequential compiler runs
def
reset
():
_warn_once_seen
.
clear
()
del
error_stack
[:]
Cython/Compiler/Main.py
View file @
bc9cdf44
...
...
@@ -510,6 +510,7 @@ class Context(object):
return
"."
.
join
(
names
)
def
setup_errors
(
self
,
options
,
result
):
Errors
.
reset
()
# clear any remaining error state
if
options
.
use_listing_file
:
result
.
listing_file
=
Utils
.
replace_suffix
(
source
,
".lis"
)
path
=
result
.
listing_file
...
...
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