mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
Remus: remove Py_RETURN_NONE for Python 2.3
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
This commit is contained in:
1 parent
fa249f4edc
commit
998479ef8f
2 files changed
+14
-7
No files matched your search
@@ -72,7 +72,8 @@ static PyObject* pycheckpoint_open(PyObject* obj, PyObject* args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
static PyObject* pycheckpoint_close(PyObject* obj, PyObject* args)
|
||||
@@ -88,7 +89,8 @@ static PyObject* pycheckpoint_close(PyObject* obj, PyObject* args)
|
||||
Py_XDECREF(self->checkpoint_cb);
|
||||
self->checkpoint_cb = NULL;
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
static PyObject* pycheckpoint_start(PyObject* obj, PyObject* args) {
|
||||
@@ -163,7 +165,8 @@ static PyObject* pycheckpoint_start(PyObject* obj, PyObject* args) {
|
||||
goto err;
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
|
||||
err:
|
||||
self->suspend_cb = NULL;
|
||||
|
||||
@@ -55,7 +55,8 @@ static PyObject* pyrtnl_talk(PyObject* obj, PyObject* args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
static PyObject* pyrtnl_wilddump_request(PyObject* obj, PyObject* args)
|
||||
@@ -71,7 +72,8 @@ static PyObject* pyrtnl_wilddump_request(PyObject* obj, PyObject* args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
static PyObject* pyrtnl_dump_request(PyObject* obj, PyObject* args)
|
||||
@@ -89,7 +91,8 @@ static PyObject* pyrtnl_dump_request(PyObject* obj, PyObject* args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
/* translate args to python and call python callback */
|
||||
@@ -133,7 +136,8 @@ static PyObject* pyrtnl_dump_filter(PyObject* obj, PyObject* args)
|
||||
}
|
||||
Py_DECREF(filter);
|
||||
|
||||
Py_RETURN_NONE;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
static PyMethodDef PyRtnl_methods[] = {
|
||||
|
||||