projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9412be
)
temp var names in the TemplateTransform may become user visible, so they must be...
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 1 Jun 2010 06:54:37 +0000
(08:54 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 1 Jun 2010 06:54:37 +0000
(08:54 +0200)
Cython/Compiler/TreeFragment.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/TreeFragment.py
b/Cython/Compiler/TreeFragment.py
index 66feaf09e611a34aebd241afba0280bdcda8bd99..6da04ac9f9f07bc87ce54b8a04c474c44a7dbf5f 100644
(file)
--- a/
Cython/Compiler/TreeFragment.py
+++ b/
Cython/Compiler/TreeFragment.py
@@
-14,6
+14,7
@@
from ExprNodes import NameNode
import Parsing
import Main
import UtilNodes
+import StringEncoding
"""
Support for parsing strings into code trees.
@@
-120,7
+121,7
@@
class TemplateTransform(VisitorTransform):
temphandles = []
for temp in temps:
TemplateTransform.temp_name_counter += 1
- handle =
"__tmpvar_%d" % TemplateTransform.temp_name_counter
+ handle =
StringEncoding.EncodedString("__tmpvar_%d" % TemplateTransform.temp_name_counter)
# handle = UtilNodes.TempHandle(PyrexTypes.py_object_type)
tempmap[temp] = handle
# temphandles.append(handle)