]> granicus.if.org Git - python/commit
time.strptime's caching of its locale object was being recreated when the
authorBrett Cannon <bcannon@gmail.com>
Sun, 1 Apr 2007 18:47:27 +0000 (18:47 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 1 Apr 2007 18:47:27 +0000 (18:47 +0000)
commitc69066501bc2da4aa325833c76e6cf12b87aafa6
treebb31b9ac1298aa9671f58e64336fc2f8fdbb8f9b
parent8f35f44af3aacf1802253dc33e26e64306e55756
time.strptime's caching of its locale object was being recreated when the
locale changed but not used during the function call it was recreated during.

The test in this checkin is untested (OS X does not have the proper locale
support for me to test), although the fix for the bug this deals with
was tested by the OP (#1290505).  Once the buildbots verify the test at least
doesn't fail it becomes a backport candidate.
Lib/_strptime.py
Lib/test/test_strptime.py
Misc/NEWS