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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
1a38e0ce
Commit
1a38e0ce
authored
Aug 21, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 fix
parent
76c776f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+4
-2
No files found.
Cython/Compiler/Main.py
View file @
1a38e0ce
...
@@ -192,7 +192,7 @@ class Context(object):
...
@@ -192,7 +192,7 @@ class Context(object):
return
Errors
.
report_error
(
exc
)
return
Errors
.
report_error
(
exc
)
def
run_pipeline
(
self
,
pipeline
,
source
):
def
run_pipeline
(
self
,
pipeline
,
source
):
err
=
None
err
or
=
None
data
=
source
data
=
source
try
:
try
:
for
phase
in
pipeline
:
for
phase
in
pipeline
:
...
@@ -203,11 +203,13 @@ class Context(object):
...
@@ -203,11 +203,13 @@ class Context(object):
except
CompileError
,
err
:
except
CompileError
,
err
:
# err is set
# err is set
Errors
.
report_error
(
err
)
Errors
.
report_error
(
err
)
error
=
err
except
InternalError
,
err
:
except
InternalError
,
err
:
# Only raise if there was not an earlier error
# Only raise if there was not an earlier error
if
Errors
.
num_errors
==
0
:
if
Errors
.
num_errors
==
0
:
raise
raise
return
(
err
,
data
)
error
=
err
return
(
error
,
data
)
def
find_module
(
self
,
module_name
,
def
find_module
(
self
,
module_name
,
relative_to
=
None
,
pos
=
None
,
need_pxd
=
1
):
relative_to
=
None
,
pos
=
None
,
need_pxd
=
1
):
...
...
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