projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
946330d
)
fix another temp var name encoding problem - seems to fix ticket #536
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 2 Jun 2010 06:34:23 +0000
(08:34 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 2 Jun 2010 06:34:23 +0000
(08:34 +0200)
Cython/Compiler/ParseTreeTransforms.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ParseTreeTransforms.py
b/Cython/Compiler/ParseTreeTransforms.py
index adb41c3c22ab06edaeeaea52acf05b2f43bc9704..8d66b7d1ab14ec733d532302cb13c34dd008b6f9 100644
(file)
--- a/
Cython/Compiler/ParseTreeTransforms.py
+++ b/
Cython/Compiler/ParseTreeTransforms.py
@@
-863,7
+863,7
@@
class WithTransform(CythonTransform, SkipDeclarations):
def visit_WithStatNode(self, node):
# TODO: Cleanup badly needed
TemplateTransform.temp_name_counter += 1
- handle =
"__tmpvar_%d" % TemplateTransform.temp_name_counter
+ handle =
EncodedString("__tmpvar_%d" % TemplateTransform.temp_name_counter)
self.visitchildren(node, ['body'])
excinfo_temp = NameNode(node.pos, name=handle)#TempHandle(Builtin.tuple_type)