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] xend: Fix c/s 20137 -- do not redefine bu

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Fix c/s 20137 -- do not redefine built-in name 'str'.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Aug 2009 10:20:11 -0700
Delivery-date: Mon, 31 Aug 2009 10:20:35 -0700
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 1251739046 -3600
# Node ID b4fcb5f632dc1eddec9dc7437abc665a59dfb5b5
# Parent  3b7cbf32fee909d860daacf70b8c3b97eaf036b5
xend: Fix c/s 20137 -- do not redefine built-in name 'str'.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 3b7cbf32fee9 -r b4fcb5f632dc tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Mon Aug 31 10:54:32 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Mon Aug 31 18:17:26 2009 +0100
@@ -2411,10 +2411,10 @@ class XendDomainInfo:
             log.exception(e)
 
         if not self.domid or self.domid < 0:
-            str = 'Creating domain failed: name=%s' % self.info['name_label']
+            failmsg = 'Creating domain failed: name=%s' % 
self.info['name_label']
             if self.domid:
-                str += ', error=%i' % int(self.domid)
-            raise VmError(str)
+                failmsg += ', error=%i' % int(self.domid)
+            raise VmError(failmsg)
 
         self.dompath = GetDomainPath(self.domid)
 

_______________________________________________
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] xend: Fix c/s 20137 -- do not redefine built-in name 'str'., Xen patchbot-unstable <=