]> granicus.if.org Git - python/commit
Fix time.strptime's %U support. Basically rewrote the algorithm to be more
authorBrett Cannon <bcannon@gmail.com>
Thu, 25 Jan 2007 20:22:02 +0000 (20:22 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 25 Jan 2007 20:22:02 +0000 (20:22 +0000)
commit07e1db317db4605acd5295f02dcfa4943d4a7054
tree758c825f6324be4a1e404044af2697ed8b1d54b1
parent27b4c8b23cf1493d5c00316ca78363189d635db5
Fix time.strptime's %U support.  Basically rewrote the algorithm to be more
generic so that one only has to shift certain values based on whether the week
was specified to start on Monday or Sunday.  Cut out a lot of edge case code
compared to the previous version.  Also broke algorithm out into its own
function (that is private to the module).

Fixes bug #1643943 (thanks Biran Nahas for the report).
Lib/_strptime.py
Lib/test/test_strptime.py
Misc/NEWS