From d71ecbc791c7a39c05b3cfd75e13c0bb65ef2891 Mon Sep 17 00:00:00 2001 From: David Goedicke <2676840+DavidGoedicke@users.noreply.github.com> Date: Sun, 6 Jun 2021 02:16:33 -0400 Subject: [PATCH] updated tuning.py so it works with Python 3.2>= Same issue as occurred in [this other Github repo](https://github.com/SecureAuthCorp/impacket/pull/10540 Essentially ```tostring()``` got outdated and so now we need to use ```tobytes()```. --- tuning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuning.py b/tuning.py index 0272329..e18f0e3 100755 --- a/tuning.py +++ b/tuning.py @@ -106,7 +106,7 @@ def read(self, name): usb.util.CTRL_IN | usb.util.CTRL_TYPE_VENDOR | usb.util.CTRL_RECIPIENT_DEVICE, 0, cmd, id, length, self.TIMEOUT) - response = struct.unpack(b'ii', response.tostring()) + response = struct.unpack(b'ii', response.tobytes() if sys.version_info[1]>=2 else response.tostring()) if data[2] == 'int': result = response[0]