From: "Peter A. Bigot" <big...@acm.org>

Signed-off-by: Peter A. Bigot <big...@acm.org>
---
 usb/core.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usb/core.py b/usb/core.py
index 97be5c7..c90d011 100644
--- a/usb/core.py
+++ b/usb/core.py
@@ -210,7 +210,7 @@ class USBError(IOError):
         to the parent object. The error_code parameter is attributed to the
         backend_error_code member variable.
         """
-        IOError.__init__(self, strerror, errno)
+        IOError.__init__(self, errno, strerror)
         self.backend_error_code = error_code
 
 class Endpoint(object):
-- 
1.7.6.2


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to