This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gphemsley
Recipients gphemsley, p-ganssle
Date 2019-05-19.21:24:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558301046.43.0.242836736511.issue36967@roundup.psfhosted.org>
In-reply-to
Content
Since __calc_am_pm() explicitly limits self.am_pm to 2 values, there are only ever 3 possible values of %p: AM, PM, or blank. Since blank is treated the same as AM, there is only the need to check whether %p is PM. This eliminates an unnecessary comparison and doubly ensures that there is no unhandled case.
History
Date User Action Args
2019-05-19 21:24:06gphemsleysetrecipients: + gphemsley, p-ganssle
2019-05-19 21:24:06gphemsleysetmessageid: <1558301046.43.0.242836736511.issue36967@roundup.psfhosted.org>
2019-05-19 21:24:06gphemsleylinkissue36967 messages
2019-05-19 21:24:06gphemsleycreate