diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-09 19:12:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 19:12:26 +0200 |
commit | 8709490f48fc27b3dd1a16acb33bea2299c6a575 (patch) | |
tree | 93776ed6abaae382eb6c3ea2cd369fde769e9841 /Python/pythonrun.c | |
parent | 8abc3f4f91e6b523c761c7a6fa2e3405019803a1 (diff) | |
download | cpython-git-8709490f48fc27b3dd1a16acb33bea2299c6a575.tar.gz |
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 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions