mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools/python: Remove non-ASCII characters introduced by fffedd3d70e1.
fffedd3d70e1 introduced into tools/python/xen/util/vscsi_util.py high-bit-set characters which appear to be UTF-8 for non-breaking spaces. Replace them with spaces to avoid getting a Python syntax error. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
f945f3adab
commit
a0b0302a08
1 file changed
+1
-1
@@ -97,7 +97,7 @@ def _vscsi_get_scsidevices_by_lsscsi(option = ""):
|
||||
devices = []
|
||||
|
||||
for scsiinfo in os.popen('{ lsscsi -g %s; } 2>/dev/null' % option).readlines():
|
||||
s = scsiinfo.replace(']', '] ').split()
|
||||
s = scsiinfo.replace(']', '] ').split()
|
||||
hctl = s[0][1:-1]
|
||||
try:
|
||||
devname = s[-2].split('/dev/')[1]
|
||||
|
||||