Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit a71eada

Browse files
committed
Also disable set_charset
1 parent 3204b28 commit a71eada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py_GeoIP.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ static PyObject *GeoIP_charset_Py(PyObject *self, PyObject *UNUSED(args))
507507
GeoIP_GeoIPObject *GeoIP = (GeoIP_GeoIPObject *)self;
508508
return Py_BuildValue("i", GeoIP_charset(GeoIP->gi));
509509
}
510-
#endif
511510

512511
static PyObject *GeoIP_set_charset_Py(PyObject * self, PyObject * args)
513512
{
@@ -519,6 +518,7 @@ static PyObject *GeoIP_set_charset_Py(PyObject * self, PyObject * args)
519518
return Py_BuildValue("i", GeoIP_set_charset(GeoIP->gi, charset));
520519

521520
}
521+
#endif
522522

523523
static PyObject *GeoIP_last_netmask_Py(PyObject * self, PyObject *UNUSED(args))
524524
{
@@ -612,9 +612,9 @@ static PyMethodDef GeoIP_GeoIP_methods[] = {
612612
#if PY_MAJOR_VERSION <= 2
613613
{ "charset", GeoIP_charset_Py, METH_NOARGS,
614614
"Return the current charset ( either GEOIP_CHARSET_ISO_8859_1 or GEOIP_CHARSET_UTF8 )" },
615-
#endif
616615
{ "set_charset", GeoIP_set_charset_Py, METH_VARARGS,
617616
"Set the charset for city records" },
617+
#endif
618618
{ "last_netmask", GeoIP_last_netmask_Py, METH_NOARGS,
619619
"Return the netmask depth of the last lookup" },
620620
{ "country_code_by_name_v6", GeoIP_country_code_by_name_v6_Py, METH_VARARGS,

0 commit comments

Comments
 (0)