Commit 836a6789 authored by Stefan Behnel's avatar Stefan Behnel

temp var names in the TemplateTransform may become user visible, so they must...

temp var names in the TemplateTransform may become user visible, so they must be encoded as identifiers
parent d9412be3
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment