From 251dbf3ab11eab34405ec15e21ceff25302266e4 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 5 Feb 2019 10:16:01 +0000 Subject: Added guard around cpychecker bug on Py3 --- psycopg/adapter_asis.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/psycopg/adapter_asis.c b/psycopg/adapter_asis.c index e11caa0..8a5cd06 100644 --- a/psycopg/adapter_asis.c +++ b/psycopg/adapter_asis.c @@ -34,6 +34,9 @@ /** the AsIs object **/ +#if PY_MAJOR_VERSION > 2 +IGNORE_REFCOUNT /* bug davidmalcolm/gcc-python-plugin#171 */ +#endif static PyObject * asis_getquoted(asisObject *self, PyObject *args) { -- cgit v1.2.1