[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] blktap2: Remove set() for Python 2.3



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1248080892 -3600
# Node ID ad5a697d701acdd0c78bfcec0a9478bdbf49df7c
# Parent  1ebe34ccd271f8b819aaecd5415920ce55bb1bfc
blktap2: Remove set() for Python 2.3

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/server/BlktapController.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff -r 1ebe34ccd271 -r ad5a697d701a 
tools/python/xen/xend/server/BlktapController.py
--- a/tools/python/xen/xend/server/BlktapController.py  Mon Jul 20 10:07:28 
2009 +0100
+++ b/tools/python/xen/xend/server/BlktapController.py  Mon Jul 20 10:08:12 
2009 +0100
@@ -13,7 +13,7 @@ TAPDISK_DEVICE  = '/dev/xen/blktap-2/tap
 TAPDISK_DEVICE  = '/dev/xen/blktap-2/tapdev'
 TAPDISK_CONTROL = TAPDISK_SYSFS + '/blktap'
 
-blktap1_disk_types = set([
+blktap1_disk_types = [
     'aio',
     'sync',
     'vmdk',
@@ -21,16 +21,16 @@ blktap1_disk_types = set([
     'qcow',
     'qcow2',
     'ioemu',
-    ])
-
-blktap2_disk_types = set([
+    ]
+
+blktap2_disk_types = [
     'aio',
     'ram',
     'qcow',
     'vhd',
-    ])
-
-blktap_disk_types = blktap1_disk_types | blktap2_disk_types
+    ]
+
+blktap_disk_types = blktap1_disk_types + blktap2_disk_types
 
 def doexec(args, inputtext=None):
     """Execute a subprocess, then return its return code, stdout and stderr"""

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.