From 9d08e4b792f58a61126df351cb533bf267105529 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Sat, 1 Apr 2017 01:06:32 +0200 Subject: [PATCH] Fix bug in PCIDeviceExtension: decode buffer to string --- qubes/ext/pci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/ext/pci.py b/qubes/ext/pci.py index 5aaa60ab..b73584aa 100644 --- a/qubes/ext/pci.py +++ b/qubes/ext/pci.py @@ -248,7 +248,7 @@ class PCIDeviceExtension(qubes.ext.Extension): p = subprocess.Popen(['xl', 'pci-list', str(vm.xid)], stdout=subprocess.PIPE) - result = p.communicate()[0] + result = p.communicate()[0].decode() m = re.search(r'^(\d+.\d+)\s+0000:{}$'.format(device.ident), result, flags=re.MULTILINE) if not m: