Skip to content
Snippets Groups Projects
Commit feec0a69 authored by roland's avatar roland Committed by Damien George
Browse files

tools/pydfu.py: Use getfullargspec instead of getargspec for newer pyusb

pyusb v1.0.2 warns about `getargspec` as being deprecated.
parent 6e50df4e
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ __verbose = None
__DFU_INTERFACE = 0
import inspect
if 'length' in inspect.getargspec(usb.util.get_string).args:
if 'length' in inspect.getfullargspec(usb.util.get_string).args:
# PyUSB 1.0.0.b1 has the length argument
def get_string(dev, index):
return usb.util.get_string(dev, 255, index)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment