mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
PyPy does not have PyDateTime_TimeZone_UTC
Fixes https://github.com/psycopg/psycopg2/issues/1398
This commit is contained in:
parent
53bda13afa
commit
4b637ec34a
|
@ -103,7 +103,7 @@ _parse_inftz(const char *str, PyObject *curs)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
#if PY_VERSION_HEX < 0x03070000
|
||||
#if defined(PYPY_VERSION) || PY_VERSION_HEX < 0x03070000
|
||||
{
|
||||
PyObject *tzoff;
|
||||
if (!(tzoff = PyDelta_FromDSU(0, 0, 0))) { goto exit; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user