bpo-35066: _dateime.datetime.strftime copies trailing '%' by michaelsaah · Pull Request #10692 · python/cpython
added 6 commits
November 20, 2018 16:58miss-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
changed the title
bpo-35066
bpo-35066: _dateime.datetime.strftime copies trailing '%'
miss-islington added a commit that referenced this pull request
Jan 14, 2019Previously, 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters