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. V
Victor Stinner committed
8709490f48fc27b3dd1a16acb33bea2299c6a575
Parent: 8abc3f4
Committed by GitHub <noreply@github.com>
on 4/9/2019, 5:12:26 PM