summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-09-10 06:21:22 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-09-10 06:21:22 (GMT)
commit1f7d6a633f2031053661da9b728380200d1486be (patch)
tree8991dba2ecece2942c8053572c288905bcca5ba5 /Lib/string.py
parent12827c1fa9e6c87248fa1e5e4341066e41ce4ffb (diff)
downloadcpython-1f7d6a633f2031053661da9b728380200d1486be.zip
cpython-1f7d6a633f2031053661da9b728380200d1486be.tar.gz
cpython-1f7d6a633f2031053661da9b728380200d1486be.tar.bz2
__slots__ went missing from Template.
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/string.py b/Lib/string.py
index fd9cc99..863d64e 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -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]*'