[Bug 1657318] Re: string.Template.substitute cant handle delimiter in replacement string

Björn Michaelsen bjoern.michaelsen at canonical.com
Wed Jan 18 01:35:00 UTC 2017


Marking invalid for now -- cant reproduce the simple scenario noted
above. Will reopen when I have a minimal repro.

** Changed in: python3.5 (Ubuntu)
       Status: New => Invalid

-- 
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:
  Invalid

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