}
if (!PyDict_Check(py_cmds)) {
- fprintf(stderr, "Python net commands is not a dictionary\n");
+ d_printf("Python net commands is not a dictionary\n");
return NULL;
}
char *name, *desc;
PyObject *py_desc;
if (!PyString_Check(key)) {
- fprintf(stderr, "Command name not a string\n");
+ d_printf("Command name not a string\n");
return 1;
}
name = PyString_AsString(key);
return 1;
}
if (!PyString_Check(py_desc)) {
- fprintf(stderr, "Command description for %s not a string\n", name);
+ d_printf("Command description for %s not a string\n",
+ name);
return 1;
}
desc = PyString_AsString(py_desc);