• Brett Cannon's avatar
    Fix time.strptime's %U support. Basically rewrote the algorithm to be more · 07e1db31
    Brett Cannon authored
    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).
    07e1db31
NEWS 96.5 KB