diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-09 17:12:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 17:12:26 (GMT) |
commit | 8709490f48fc27b3dd1a16acb33bea2299c6a575 (patch) | |
tree | 93776ed6abaae382eb6c3ea2cd369fde769e9841 /Misc | |
parent | 8abc3f4f91e6b523c761c7a6fa2e3405019803a1 (diff) | |
download | cpython-8709490f48fc27b3dd1a16acb33bea2299c6a575.zip cpython-8709490f48fc27b3dd1a16acb33bea2299c6a575.tar.gz cpython-8709490f48fc27b3dd1a16acb33bea2299c6a575.tar.bz2 |
bpo-34373: Fix time.mktime() on AIX (GH-12726)
Fix time.mktime() error handling on AIX for year before 1970.
Other changes:
* mktime(): rename variable 'buf' to 'tm'.
* _PyTime_localtime():
* Use "localtime" rather than "ctime" in the error message
(specific to AIX).
* Always initialize errno to 0 just in case if localtime_r()
doesn't set errno on error.
* On AIX, avoid abs() which is limited to int type.
* EINVAL constant is now always available.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-04-08-14-41-22.bpo-34373.lEAl_-.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-04-08-14-41-22.bpo-34373.lEAl_-.rst b/Misc/NEWS.d/next/Library/2019-04-08-14-41-22.bpo-34373.lEAl_-.rst new file mode 100644 index 0000000..19b38fe --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-04-08-14-41-22.bpo-34373.lEAl_-.rst @@ -0,0 +1 @@ +Fix :func:`time.mktime` error handling on AIX for year before 1970. |