mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +03:00
define a "polyfill" inline for python 2 compatibility
This commit is contained in:
parent
ae227effe2
commit
632cfe0617
|
@ -93,6 +93,12 @@ error:
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifndef PyDateTime_DELTA_GET_DAYS
|
||||
#define PyDateTime_DELTA_GET_DAYS(o) (o->days)
|
||||
#define PyDateTime_DELTA_GET_SECONDS(o) (o->seconds)
|
||||
#define PyDateTime_DELTA_GET_MICROSECONDS(o) (o->microseconds)
|
||||
#endif
|
||||
|
||||
static PyObject *
|
||||
_pydatetime_string_delta(pydatetimeObject *self)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user