]> granicus.if.org Git - python/commit
Make sure time.strptime only accepts strings (and document the fact like
authorBrett Cannon <bcannon@gmail.com>
Mon, 30 Mar 2009 21:30:26 +0000 (21:30 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 30 Mar 2009 21:30:26 +0000 (21:30 +0000)
commit7f6b4f86e305ec63441657c57f5f546d15114ca0
treef7b41eb0be99b61e60e35d9e36746c56ef0a5d7f
parentd687887b536bf1674ac45f78bb77b346aa2b7687
Make sure time.strptime only accepts strings (and document the fact like
strftime). Already didn't accept bytes but make the check earlier. This also
lifts the limitation of requiring ASCII.

Closes issue #5236. Thanks Tennessee Leeuwenburg.
Doc/library/time.rst
Lib/_strptime.py
Lib/test/test_time.py
Misc/ACKS
Misc/NEWS