[Python-modules-commits] [pyusb] 01/05: Fix braino in libusb0.
Ruben Undheim
rubund-guest at moszumanska.debian.org
Sat Apr 16 09:36:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch master
in repository pyusb.
commit 9681f0ccb0f6029ab7b4d401f20b501ed88d11be
Author: Wander Lairson Costa <wander.lairson at gmail.com>
Date: Thu Feb 18 21:30:18 2016 -0200
Fix braino in libusb0.
Thanks to Ioan Lupu.
---
usb/backend/libusb0.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usb/backend/libusb0.py b/usb/backend/libusb0.py
index e5a4b7c..319c228 100644
--- a/usb/backend/libusb0.py
+++ b/usb/backend/libusb0.py
@@ -457,7 +457,7 @@ class _LibUSB(usb.backend.IBackend):
def get_interface_descriptor(self, dev, intf, alt, config):
cfgdesc = self.get_configuration_descriptor(dev, config)
if intf >= cfgdesc.bNumInterfaces:
- raise IndexError('Invalid interface index ' + str(interface))
+ raise IndexError('Invalid interface index ' + str(intf))
interface = cfgdesc.interface[intf]
if alt >= interface.num_altsetting:
raise IndexError('Invalid alternate setting index ' + str(alt))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyusb.git
More information about the Python-modules-commits
mailing list