]> granicus.if.org Git - python/commit
At the cost of a modest (but useful in its own right) change in the semantics
authorBarry Warsaw <barry@python.org>
Sat, 18 Sep 2004 00:06:34 +0000 (00:06 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 18 Sep 2004 00:06:34 +0000 (00:06 +0000)
commit17cb60083c53b464a329f1a660a922db677389dd
tree71cd312c89fef47908b2d6beae434f62d6148abf
parent2e6fb4634cf7fce9938f80661dc000d9748a7bc7
At the cost of a modest (but useful in its own right) change in the semantics
of the Template.delimiter attribute, we make use of the delimiter in the
escaped group, and in the safe_substitute() method more robust.

Now, .delimiter should be the unescaped delimiter literal, e.g. '$' or '&', or
whatever.  The _TemplateMetaclass will re.escape() this value when it builds
the pattern.
Lib/string.py