Merge remote-tracking branch 'qubesos/pr/224'
* qubesos/pr/224: Fix error on non ASCII PCI IDs upon qvm-device list Fixed code style.
This commit is contained in:
commit
b72b81fb9e
@ -42,7 +42,8 @@ def load_pci_classes():
|
|||||||
# subclass subclass_name <-- single tab
|
# subclass subclass_name <-- single tab
|
||||||
# prog-if prog-if_name <-- two tabs
|
# prog-if prog-if_name <-- two tabs
|
||||||
result = {}
|
result = {}
|
||||||
with open('/usr/share/hwdata/pci.ids') as pciids:
|
with open('/usr/share/hwdata/pci.ids',
|
||||||
|
encoding='utf-8', errors='ignore') as pciids:
|
||||||
class_id = None
|
class_id = None
|
||||||
subclass_id = None
|
subclass_id = None
|
||||||
for line in pciids.readlines():
|
for line in pciids.readlines():
|
||||||
|
Loading…
Reference in New Issue
Block a user