mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 03:26:37 +03:00
Fixed check for type == int on Py2
This commit is contained in:
parent
b9d0808f95
commit
fec0a5587d
|
@ -40,7 +40,7 @@ pint_getquoted(pintObject *self, PyObject *args)
|
|||
/* Convert subclass to int to handle IntEnum and other subclasses
|
||||
* whose str() is not the number. */
|
||||
if (PyLong_CheckExact(self->wrapped)
|
||||
#if PY_MAJOR_VERSION < 2
|
||||
#if PY_2
|
||||
|| PyInt_CheckExact(self->wrapped)
|
||||
#endif
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user