This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mjsaah
Recipients mjsaah
Date 2018-10-25.14:33:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540478010.12.0.788709270274.issue35066@psf.upfronthosting.co.za>
In-reply-to
Content
A call to
time.strftime('%')
returns
'%'

A similar call to
datetime.utcfromtimestamp(int(time.time()).strftime('%')
raises
ValueError: strftime format ends with raw %

Similar inputs like '%D %' behave similarly.

I might take a crack at fixing this, but first I wanted to see what the official guidance is. Seems to me like similar error handling behavior between the functions  would be desirable.
History
Date User Action Args
2018-10-25 14:33:30mjsaahsetrecipients: + mjsaah
2018-10-25 14:33:30mjsaahsetmessageid: <1540478010.12.0.788709270274.issue35066@psf.upfronthosting.co.za>
2018-10-25 14:33:30mjsaahlinkissue35066 messages
2018-10-25 14:33:30mjsaahcreate