Remus: remove Py_RETURN_NONE for Python 2.3
PATCH 1/1 Remus: remove Py_RETURN_NONE for Python 2.3
Hi,
Is Python 2.3 still supported? If yes, this patch is required because Python 2.3 does not have Py_RETURN_NONE.
Best regards,
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1258694430 -32400
# Node ID 6fbf632dcfdd3557b9c2ee6e84465079503d7b6c # Parent 36a841785e3b8b3a8b4d067049bba6db1f4e9020
Remus: remove Py_RETURN_NONE for Python 2.3
Python 2.3 does not have Py_RETURN_NONE.
tools/python/xen/lowlevel/checkpoint/checkpoint.c +6 -3
@@ -72,7 +72,8 @@ static PyObject* pycheckpoint_open(PyObjreturn 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(PyObPy_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 ;
tools/python/xen/lowlevel/netlink/netlink.c +8 -4
@@ -55,7 +55,8 @@ static PyObject* pyrtnl_talk(PyObject* oreturn 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_requestreturn 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(PyOreturn 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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
KUWAMURA Shin'ya writes ("[Xen-devel] [PATCH] Remus: remove Py_RETURN_NONE for Python 2.3"):
Quoted 2 lines
Is Python 2.3 still supported? If yes, this patch is required because Python 2.3 does not have
Py_RETURN_NONE.
I think we decided to drop Python 2.3.
Ian.