]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692)
authorMichaelSaah <mike.saah@gmail.com>
Mon, 14 Jan 2019 10:23:39 +0000 (05:23 -0500)
committerVictor Stinner <vstinner@redhat.com>
Mon, 14 Jan 2019 10:23:39 +0000 (11:23 +0100)
commit454b3d4ea246e8751534e105548d141ed7b0b032
tree6a337c41728d51a65521e0a9b47176654775cfd4
parent5bb146aaea1484bcc117ab6cb38dda39ceb5df0f
bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692)

Previously, calling the strftime() method on a datetime object with a
trailing '%' in the format string would result in an exception. However,
this only occured when the datetime C module was being used; the python
implementation did not match this behavior. Datetime is now PEP-399
compliant, and will not throw an exception on a trailing '%'.
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2018-11-29-09-38-40.bpo-35066.Nwej2s.rst [new file with mode: 0644]
Modules/_datetimemodule.c