We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a99847 commit f684bcbCopy full SHA for f684bcb
src/pl/plpython/plpython.c
@@ -4170,7 +4170,9 @@ PLy_init_plpy(void)
4170
PyObject *main_mod,
4171
*main_dict,
4172
*plpy_mod;
4173
+#if PY_MAJOR_VERSION < 3
4174
PyObject *plpy;
4175
+#endif
4176
4177
/*
4178
* initialize plpy module
@@ -4183,7 +4185,7 @@ PLy_init_plpy(void)
4183
4185
elog(ERROR, "could not initialize PLy_SubtransactionType");
4184
4186
4187
#if PY_MAJOR_VERSION >= 3
- plpy = PyModule_Create(&PLy_module);
4188
+ PyModule_Create(&PLy_module);
4189
/* for Python 3 we initialized the exceptions in PyInit_plpy */
4190
#else
4191
plpy = Py_InitModule("plpy", PLy_methods);
0 commit comments