diff options
author | roland <roland@van-straten.org> | 2018-07-18 12:31:14 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-07-20 14:28:17 +1000 |
commit | feec0a6909c00ebf0df3250fabaaf10bff73614b (patch) | |
tree | e5ec4838c87f56eb2bcb8379f8ee9745c527f256 | |
parent | 6e50df4e21f13dc62858afbb927e563b721433b8 (diff) |
tools/pydfu.py: Use getfullargspec instead of getargspec for newer pyusb
pyusb v1.0.2 warns about `getargspec` as being deprecated.
-rwxr-xr-x | tools/pydfu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pydfu.py b/tools/pydfu.py index a7adda37c..112e354ec 100755 --- a/tools/pydfu.py +++ b/tools/pydfu.py @@ -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) |