hackathon-dev #1
|
@ -204,11 +204,11 @@ static void devctxt_dealloc(DevCtxtObject *self)
|
|||
|
||||
static int devctxt_init(DevCtxtObject *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static char *kwlist[] = { "type" };
|
||||
char *type;
|
||||
static char *kwlist[] = { "type", NULL };
|
||||
const char *type;
|
||||
|
||||
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;
|
||||
Log(LDEBUG,"type argument is '%s'", type);
|
||||
if (strcmp(type, "screen") == 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user