Permalink
Browse files

Issue 200: Python 3.1 build problem.

  • Loading branch information...
1 parent 9b5b222 commit 0d47ebee1160e373440a39307fe1bba5457bca25 @mkleehammer committed Aug 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/row.cpp
View
@@ -340,7 +340,7 @@ static PyObject* Row_subscript(PyObject* o, PyObject* key)
if (PySlice_Check(key))
{
Py_ssize_t start, stop, step, slicelength;
-#if PY_MAJOR_VERSION >= 3
+#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(key, row->cValues, &start, &stop, &step, &slicelength) < 0)
return 0;
#else

0 comments on commit 0d47ebe

Please sign in to comment.