From 779484717109f4e6686ae075a732bc1143595f1f Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Sun, 16 Jul 2017 08:07:47 +0200 Subject: [PATCH] Fix typo in variable name --- Manual.org | 2 +- library/hardware_facts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Manual.org b/Manual.org index eb48901..5106799 100644 --- a/Manual.org +++ b/Manual.org @@ -4190,7 +4190,7 @@ def format_gpu_device_list(iterator): def get_entries(iterator): for d in iterator: if d.idClass == 0x030000: - yield (vendor_dict.get(d.id_Vendor, "unknown"), "{:04x}:{:04x}".format(d.idVendor, d.idProduct)) + yield (vendor_dict.get(d.idVendor, "unknown"), "{:04x}:{:04x}".format(d.idVendor, d.idProduct)) return [entry for entry in get_entries(iterator)] arg_specs = { diff --git a/library/hardware_facts.py b/library/hardware_facts.py index 1338b01..e6a1e5f 100755 --- a/library/hardware_facts.py +++ b/library/hardware_facts.py @@ -93,7 +93,7 @@ def format_gpu_device_list(iterator): def get_entries(iterator): for d in iterator: if d.idClass == 0x030000: - yield (vendor_dict.get(d.id_Vendor, "unknown"), "{:04x}:{:04x}".format(d.idVendor, d.idProduct)) + yield (vendor_dict.get(d.idVendor, "unknown"), "{:04x}:{:04x}".format(d.idVendor, d.idProduct)) return [entry for entry in get_entries(iterator)] arg_specs = {