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-devel

[Xen-devel] using xen tools with python2.6

To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] using xen tools with python2.6
From: Matthias Klose <doko@xxxxxxxxxx>
Date: Sun, 12 Sep 2010 16:25:01 +0200
Cc:
Delivery-date: Mon, 13 Sep 2010 08:09:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100903 Thunderbird/3.1.3
there are at least some syntax errors when trying to use the xen utils with python2.6. The attached patch changes these string exception into ValueError's.

 - tools/python/xen/util/bugtool.py (getBugTitle)
 - tools/python/xen/xend (class XendBase): not catched
 - tools/python/xen/xm/xenapi_create.py (sxp2xmlconvert_sxp_to_xml):
   the method already raises a ValueError for similiar condition.
 - tools/python/xen/xm/main.py (xm_network_attach): not catched.

For all but maybe the first one, the replacement of the string exceptions into ValueError's seems to be safe.

  Matthias


Attachment: tools-python2.6.diff
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel