summaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-13 17:59:45 (GMT)
committerGitHub <noreply@github.com>2021-10-13 17:59:45 (GMT)
commitf40b230df91f29fa4a84c1d127b4eab56a6eda27 (patch)
tree0a31e70a791ba8e3a0e7f748dad539ae46633f93 /LICENSE
parentfd2be6da2ffec2301a58aefa92f17f0c567fbc55 (diff)
downloadcpython-f40b230df91f29fa4a84c1d127b4eab56a6eda27.zip
cpython-f40b230df91f29fa4a84c1d127b4eab56a6eda27.tar.gz
cpython-f40b230df91f29fa4a84c1d127b4eab56a6eda27.tar.bz2
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765) (GH-28934)
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. (cherry picked from commit 1c831353816ff699b54e804047a7242a09e98f5b) Co-authored-by: rtobar <rtobarc@gmail.com>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions