summaryrefslogtreecommitdiff
path: root/Lib/string.py
diff options
context:
space:
mode:
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 fd9cc99231..863d64e480 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]*'