Hi,
This removes set() for Python 2.3, since set() is added from Python 2.4.
Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
--
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# Date 1247803999 -32400
# Node ID a32f75dd8932f2301247009172915f1a1c380c89
# Parent 63b8d3d7aa8e88a06c734f94e0a399602e1bbfa7
blktap2: Remove set() for Python 2.3
set() is removed for Python 2.3.
Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
diff -r 63b8d3d7aa8e -r a32f75dd8932
tools/python/xen/xend/server/BlktapController.py
--- a/tools/python/xen/xend/server/BlktapController.py Fri Jul 17 11:43:13
2009 +0900
+++ b/tools/python/xen/xend/server/BlktapController.py Fri Jul 17 13:13:19
2009 +0900
@@ -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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|