diff options
author | rtobar <rtobarc@gmail.com> | 2021-10-13 16:38:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 16:38:36 (GMT) |
commit | 1c831353816ff699b54e804047a7242a09e98f5b (patch) | |
tree | 81c43dd0c8a7a0e3202f86e77849cbf4efb4c70c /Programs | |
parent | 3dee0cb6217db326e844955a7f8b424c67990557 (diff) | |
download | cpython-1c831353816ff699b54e804047a7242a09e98f5b.zip cpython-1c831353816ff699b54e804047a7242a09e98f5b.tar.gz cpython-1c831353816ff699b54e804047a7242a09e98f5b.tar.bz2 |
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765)
At import time, the xmlrpc.client module uses different date formats to
test strftime so it can format years with 4 digits consistently.
Depending on the underlying C library and its strftime implementation
some of these calls can result in ValueErrors, blocking the
xmlrpc.client module from being imported.
This commit changes the behavior of this bit of code to react to
ValueError exceptions, treating the format that caused them as an
non-viable option.
Diffstat (limited to 'Programs')
0 files changed, 0 insertions, 0 deletions