bpo-35066: _dateime.datetime.strftime copies trailing '%' by michaelsaah · Pull Request #10692 · python/cpython

added 6 commits

November 20, 2018 16:58

@michaelsaah

…atetime.strftime doesn't fail, assuming time.strftime doesn't fail

@michaelsaah

pganssle

@michaelsaah

pganssle

pganssle

@michaelsaah

@michaelsaah

@michaelsaah

…lude null byte in format string.

@michaelsaah

pganssle

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 14, 2019
…0692)

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>

@vstinner vstinner changed the title bpo-35066 bpo-35066: _dateime.datetime.strftime copies trailing '%'

Jan 14, 2019

miss-islington added a commit that referenced this pull request

Jan 14, 2019
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>