mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:24:57 +02:00
Fix incorrect sub-classing of tuple
This commit is contained in:
parent
9022554d93
commit
bd0c9c3f8e
1 changed files with 3 additions and 2 deletions
|
|
@ -109,9 +109,10 @@ def __call__(self, debug=False):
|
|||
|
||||
class USBDevice(_USBDevice):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
_USBDevice.__init__(self, *args, **kwargs)
|
||||
def __new__(cls, *args, **kwargs):
|
||||
self = super(USBDevice, cls).__new__(cls, *args)
|
||||
self.busnum = self.devnum = -1
|
||||
return self
|
||||
|
||||
def __repr__(self):
|
||||
return (u'USBDevice(busnum=%s, devnum=%s, '
|
||||
|
|
|
|||
Loading…
Reference in a new issue