summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-02-05 10:16:01 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-02-16 14:44:24 +0100
commit251dbf3ab11eab34405ec15e21ceff25302266e4 (patch)
treeb36d89c84f31b0b453752346a8ea668675a05a7a
parent59e1c368ad0473477a4940293bf3853fa776db13 (diff)
downloadpsycopg2-cpychecker.tar.gz
Added guard around cpychecker bug on Py3cpychecker
-rw-r--r--psycopg/adapter_asis.c3
1 files changed, 3 insertions, 0 deletions
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)
{