Use the new native screen class

This commit is contained in:
Kovid Goyal
2016-11-18 15:30:59 +05:30
parent 6c39b07552
commit 3ce2c0553f
20 changed files with 75 additions and 2388 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ parse_bytes(PyObject UNUSED *self, PyObject *args) {
Py_buffer pybuf;
Screen *screen;
#ifdef DUMP_COMMANDS
if (!PyArg_ParseTuple(args, "O!y*O", &Screen_Type, &screen, &pybuf, &dump_callback)) return NULL;
if (!PyArg_ParseTuple(args, "OO!y*", &dump_callback, &Screen_Type, &screen, &pybuf)) return NULL;
if (!PyCallable_Check(dump_callback)) { PyErr_SetString(PyExc_TypeError, "The dump callback must be a callable object"); return NULL; }
#else
if (!PyArg_ParseTuple(args, "O!y*", &Screen_Type, &screen, &pybuf)) return NULL;