Remove unused argument.

This commit is contained in:
Joris Vink 2018-04-13 16:04:33 +02:00
parent bfd4851c85
commit 92bd546935
2 changed files with 4 additions and 7 deletions

View File

@ -345,7 +345,7 @@ static const char *pyko_init_data =
"if port is None:\n"
"\tport = '8888'\n"
"\n"
"kore.listen(ip, port, '')\n"
"kore.listen(ip, port)\n"
"\n"
"def kore_worker_configure():\n"
"\tconninfo = os.getenv('PYKO_CONNINFO')\n"

View File

@ -627,15 +627,12 @@ python_kore_log(PyObject *self, PyObject *args)
static PyObject *
python_kore_listen(PyObject *self, PyObject *args)
{
const char *ip, *port, *ccb;
const char *ip, *port;
if (!PyArg_ParseTuple(args, "sss", &ip, &port, &ccb))
if (!PyArg_ParseTuple(args, "ss", &ip, &port))
return (NULL);
if (!strcmp(ccb, ""))
ccb = NULL;
if (!kore_server_bind(ip, port, ccb)) {
if (!kore_server_bind(ip, port, NULL)) {
PyErr_SetString(PyExc_RuntimeError, "failed to listen");
return (NULL);
}