hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00
Showing only changes of commit 12bd14e1e7 - Show all commits

View File

@ -204,11 +204,11 @@ static void devctxt_dealloc(DevCtxtObject *self)
static int devctxt_init(DevCtxtObject *self, PyObject *args, PyObject *kwds) static int devctxt_init(DevCtxtObject *self, PyObject *args, PyObject *kwds)
{ {
static char *kwlist[] = { "type" }; static char *kwlist[] = { "type", NULL };
char *type; const char *type;
Log(LDEBUG, "Creating a new DevCtxt object"); Log(LDEBUG, "Creating a new DevCtxt object");
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|s", kwlist, &type)) if (!PyArg_ParseTupleAndKeywords(args, kwds, "$s", kwlist, &type))
return -1; return -1;
Log(LDEBUG,"type argument is '%s'", type); Log(LDEBUG,"type argument is '%s'", type);
if (strcmp(type, "screen") == 0) if (strcmp(type, "screen") == 0)