# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1258960256 0
# Node ID 6337fca82512e59dc93b2ab8ebcf85e4b6806156
# Parent 6aec9e80feaa1dde6d09a2b8df8c79c01d6bfbb5
Remus: remove Py_RETURN_NONE for Python 2.3
Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
---
tools/python/xen/lowlevel/checkpoint/checkpoint.c | 9 ++++++---
tools/python/xen/lowlevel/netlink/netlink.c | 12 ++++++++----
2 files changed, 14 insertions(+), 7 deletions(-)
diff -r 6aec9e80feaa -r 6337fca82512
tools/python/xen/lowlevel/checkpoint/checkpoint.c
--- a/tools/python/xen/lowlevel/checkpoint/checkpoint.c Mon Nov 23 07:07:08
2009 +0000
+++ b/tools/python/xen/lowlevel/checkpoint/checkpoint.c Mon Nov 23 07:10:56
2009 +0000
@@ -72,7 +72,8 @@ static PyObject* pycheckpoint_open(PyObj
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(PyOb
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(PyOb
goto err;
}
- Py_RETURN_NONE;
+ Py_INCREF(Py_None);
+ return Py_None;
err:
self->suspend_cb = NULL;
diff -r 6aec9e80feaa -r 6337fca82512 tools/python/xen/lowlevel/netlink/netlink.c
--- a/tools/python/xen/lowlevel/netlink/netlink.c Mon Nov 23 07:07:08
2009 +0000
+++ b/tools/python/xen/lowlevel/netlink/netlink.c Mon Nov 23 07:10:56
2009 +0000
@@ -55,7 +55,8 @@ static PyObject* pyrtnl_talk(PyObject* o
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
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(PyO
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(PyOb
}
Py_DECREF(filter);
- Py_RETURN_NONE;
+ Py_INCREF(Py_None);
+ return Py_None;
}
static PyMethodDef PyRtnl_methods[] = {
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|