return python 'None' for null values - otherwise we hit runtime error of 'SystemError: NULL result without error in PyObject_Call'

This commit is contained in:
Dane Springmeyer 2011-07-11 19:27:38 +00:00
parent 55b37160e4
commit 563ae20a6e

View File

@ -54,7 +54,7 @@ namespace boost { namespace python {
PyObject * operator() (mapnik::value_null const& /*s*/) const
{
return NULL;
return Py_None;
}
};