Switch to unified view

a/src/python/recoll/pyrecoll.cpp b/src/python/recoll/pyrecoll.cpp
...
...
1127
        PyErr_SetString(PyExc_AttributeError, "query");
1127
        PyErr_SetString(PyExc_AttributeError, "query");
1128
        return 0;
1128
        return 0;
1129
    }
1129
    }
1130
    int cnt = self->query->getResCnt();
1130
    int cnt = self->query->getResCnt();
1131
    if (cnt <= 0 || self->next < 0) {
1131
    if (cnt <= 0 || self->next < 0) {
1132
        # PEP 249 says to raise exception if no result set
1132
        // PEP 249 says to raise exception if no result set
1133
        PyErr_SetString(PyExc_AttributeError, "query");
1133
        PyErr_SetString(PyExc_AttributeError, "query");
1134
        return 0;
1134
        return 0;
1135
    }
1135
    }
1136
1136
1137
    PyObject *reslist = PyList_New(0);
1137
    PyObject *reslist = PyList_New(0);