summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-03-30 21:30:26 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-03-30 21:30:26 (GMT)
commit7f6b4f86e305ec63441657c57f5f546d15114ca0 (patch)
treef7b41eb0be99b61e60e35d9e36746c56ef0a5d7f /Misc
parentd687887b536bf1674ac45f78bb77b346aa2b7687 (diff)
downloadcpython-7f6b4f86e305ec63441657c57f5f546d15114ca0.zip
cpython-7f6b4f86e305ec63441657c57f5f546d15114ca0.tar.gz
cpython-7f6b4f86e305ec63441657c57f5f546d15114ca0.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 85bc8a1..85a443b 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -411,6 +411,7 @@ John J. Lee
Inyeol Lee
Thomas Lee
Christopher Lee
+Tennessee Leeuwenburg
Luc Lefebvre
Kip Lehman
Joerg Lehmann
diff --git a/Misc/NEWS b/Misc/NEWS
index f0dafcb..f2888be 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -43,6 +43,9 @@ Core and Builtins
Library
-------
+- Issue #5236: Change time.strptime() to only take strings. Didn't work with
+ bytes already but the failure was non-obvious.
+
- Issue #5177: Multiprocessing's SocketListener class now uses
socket.SO_REUSEADDR on all connections so that the user no longer needs
to wait 120 seconds for the socket to expire.