__slots__ went missing from Template.

This commit is contained in:
Raymond Hettinger 2004-09-10 06:21:22 +00:00
parent 12827c1fa9
commit 1f7d6a633f

View File

@ -105,6 +105,7 @@ class _TemplateMetaclass(type):
class Template:
"""A string class for supporting $-substitutions."""
__metaclass__ = _TemplateMetaclass
__slots__ = ['template']
delimiter = r'\$'
idpattern = r'[_a-z][_a-z0-9]*'