debuggers.hg

changeset 19996:ad5a697d701a

blktap2: Remove set() for Python 2.3

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jul 20 10:08:12 2009 +0100 (2009-07-20)
parents 1ebe34ccd271
children 69cd50c86a79
files tools/python/xen/xend/server/BlktapController.py
line diff
     1.1 --- a/tools/python/xen/xend/server/BlktapController.py	Mon Jul 20 10:07:28 2009 +0100
     1.2 +++ b/tools/python/xen/xend/server/BlktapController.py	Mon Jul 20 10:08:12 2009 +0100
     1.3 @@ -13,7 +13,7 @@ TAPDISK_BINARY  = '/usr/sbin/tapdisk2'
     1.4  TAPDISK_DEVICE  = '/dev/xen/blktap-2/tapdev'
     1.5  TAPDISK_CONTROL = TAPDISK_SYSFS + '/blktap'
     1.6  
     1.7 -blktap1_disk_types = set([
     1.8 +blktap1_disk_types = [
     1.9      'aio',
    1.10      'sync',
    1.11      'vmdk',
    1.12 @@ -21,16 +21,16 @@ blktap1_disk_types = set([
    1.13      'qcow',
    1.14      'qcow2',
    1.15      'ioemu',
    1.16 -    ])
    1.17 +    ]
    1.18  
    1.19 -blktap2_disk_types = set([
    1.20 +blktap2_disk_types = [
    1.21      'aio',
    1.22      'ram',
    1.23      'qcow',
    1.24      'vhd',
    1.25 -    ])
    1.26 +    ]
    1.27  
    1.28 -blktap_disk_types = blktap1_disk_types | blktap2_disk_types
    1.29 +blktap_disk_types = blktap1_disk_types + blktap2_disk_types
    1.30  
    1.31  def doexec(args, inputtext=None):
    1.32      """Execute a subprocess, then return its return code, stdout and stderr"""