[3.7] bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692) by miss-islington · Pull Request #11550 · python/cpython

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 '%'.
(cherry picked from commit 454b3d4)

Co-authored-by: MichaelSaah mike.saah@gmail.com

https://bugs.python.org/issue35066