WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Remus: remove Py_RETURN_NONE for Python 2

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Remus: remove Py_RETURN_NONE for Python 2.3
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Nov 2009 23:35:47 -0800
Delivery-date: Sun, 22 Nov 2009 23:38:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Remus: remove Py_RETURN_NONE for Python 2.3, Xen patchbot-unstable <=