[Bug 1657318] [NEW] string.Template.substitute cant handle delimiter in replacement string
Björn Michaelsen
bjoern.michaelsen at canonical.com
Wed Jan 18 01:22:08 UTC 2017
Public bug reported:
python 3.5.3 as in Zesty cant handle delimiters in the replacement value
properly.
Example:
$ python3.5
>>> from string import Template
>>> Template("$foo $bar").substitute(foo="FOO", bar="$")
Expected result:
'FOO $'
Actual result:
error
This is a regression against at least xenial where this works as
expected.
** Affects: python3.5 (Ubuntu)
Importance: Undecided
Status: New
** Tags: regression-release
** Tags added: regression-release
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1657318
Title:
string.Template.substitute cant handle delimiter in replacement string
Status in python3.5 package in Ubuntu:
New
Bug description:
python 3.5.3 as in Zesty cant handle delimiters in the replacement
value properly.
Example:
$ python3.5
>>> from string import Template
>>> Template("$foo $bar").substitute(foo="FOO", bar="$")
Expected result:
'FOO $'
Actual result:
error
This is a regression against at least xenial where this works as
expected.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.5/+bug/1657318/+subscriptions
More information about the foundations-bugs
mailing list