Skip to content

Commit feec0a6

Browse files
rolandvsdpgeorge
authored andcommitted
tools/pydfu.py: Use getfullargspec instead of getargspec for newer pyusb
pyusb v1.0.2 warns about `getargspec` as being deprecated.
1 parent 6e50df4 commit feec0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pydfu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
__DFU_INTERFACE = 0
6363

6464
import inspect
65-
if 'length' in inspect.getargspec(usb.util.get_string).args:
65+
if 'length' in inspect.getfullargspec(usb.util.get_string).args:
6666
# PyUSB 1.0.0.b1 has the length argument
6767
def get_string(dev, index):
6868
return usb.util.get_string(dev, 255, index)

0 commit comments

Comments
 (0)