]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix small bugs in Template code.
authorRaymond Hettinger <python@rcn.com>
Tue, 14 Sep 2004 02:34:08 +0000 (02:34 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 14 Sep 2004 02:34:08 +0000 (02:34 +0000)
commit6d191113a6c24c5a5c1cd8ade63f5a8f7027b1f4
tree098a5dafc4215acc8bcb4e07f762b92552ab98ff
parent23f1241dc6495eb255e1a389aef204a3e35a2632
Fix small bugs in Template code.

* The parameterization of "delimiter" was incomplete.
* safe_substitute's code for braced delimiters should only be executed
  when braced is not None.
* Invalid pattern group names now raise a ValueError.  Formerly, the
  convert code would fall off the end and improperly return None.

Beefed-up tests.

* Test delimiter override for all paths in substitute and safe_substitute.
* Alter unittest invocation to match other modules (now it itemizes the
  tests as they are run).
Lib/string.py
Lib/test/test_pep292.py