0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/
"", /* tp_doc */
- (traverseproc)BaseContext_traverse, /* tp_traverse */
+ (traverseproc)BaseContext_traverse, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
self.stream.current.type,
lineno, self.filename)
else:
+ name = self.stream.current.value
raise TemplateSyntaxError('unknown directive %r.' %
- self.stream.current.type,
- lineno, self.filename)
+ name, lineno, self.filename)
else:
node = handler()
if node is not None: