mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Don't set tp_compare on Python 3
The slot is unused in Py < 3.5, and replaced by pg_as_async in Py 3.5.
This commit is contained in:
parent
e9577e9b89
commit
a81f12f9bd
|
@ -491,7 +491,11 @@ PyTypeObject typecastType = {
|
|||
0, /*tp_print*/
|
||||
0, /*tp_getattr*/
|
||||
0, /*tp_setattr*/
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
typecast_cmp, /*tp_compare*/
|
||||
#else
|
||||
0, /*tp_reserved*/
|
||||
#endif
|
||||
typecast_repr, /*tp_repr*/
|
||||
0, /*tp_as_number*/
|
||||
0, /*tp_as_sequence*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user