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:
e2a07e8
)
fix tracing check outside of functions
author
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 5 Apr 2013 15:42:59 +0000
(17:42 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 5 Apr 2013 15:42:59 +0000
(17:42 +0200)
Cython/Compiler/Code.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Code.py
b/Cython/Compiler/Code.py
index
bb60ab2
..
4bd14ff
100644
(file)
--- a/
Cython/Compiler/Code.py
+++ b/
Cython/Compiler/Code.py
@@
-1503,7
+1503,8
@@
class CCodeWriter(object):
self.write("\n")
self.indent()
self.write("/* %s */\n" % self.marker[1])
- if self.funcstate.can_trace and self.globalstate.directives['linetrace']:
+ if (self.funcstate and self.funcstate.can_trace
+ and self.globalstate.directives['linetrace']):
self.indent()
self.write('__Pyx_TraceLine(%d)\n' % self.marker[0])
self.last_marker_line = self.marker[0]