Commit ef698455 authored by David Gobbi's avatar David Gobbi

COMP: PyObject_HashNotImplemented() wasn't added until Python 2.6b2

parent 0f73f1e6
......@@ -187,8 +187,8 @@ static long PyVTKSpecialObject_PyHash(PyVTKSpecialObject *self)
return val;
}
}
// python 2.6
#if PY_VERSION_HEX >= 0x02060000
// python 2.6b2
#if PY_VERSION_HEX >= 0x020600B2
return PyObject_HashNotImplemented((PyObject *)self);
#else
PyErr_SetString(PyExc_TypeError, (char *)"object is not hashable");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment