projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c776f
)
Py3 fix
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 07:42:01 +0000
(09:42 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 07:42:01 +0000
(09:42 +0200)
Cython/Compiler/Main.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Main.py
b/Cython/Compiler/Main.py
index f8bcf1511ab633e8ae689b7ea1c7bc4b56daf6bb..a5b1efe34555e2be025d11a2df80f42168679339 100644
(file)
--- a/
Cython/Compiler/Main.py
+++ b/
Cython/Compiler/Main.py
@@
-192,7
+192,7
@@
class Context(object):
return Errors.report_error(exc)
def run_pipeline(self, pipeline, source):
- err = None
+ err
or
= None
data = source
try:
for phase in pipeline:
@@
-203,11
+203,13
@@
class Context(object):
except CompileError, err:
# err is set
Errors.report_error(err)
+ error = err
except InternalError, err:
# Only raise if there was not an earlier error
if Errors.num_errors == 0:
raise
- return (err, data)
+ error = err
+ return (error, data)
def find_module(self, module_name,
relative_to = None, pos = None, need_pxd = 1):