From 1b709bc61480e592ad29febacef1d1975e584673 Mon Sep 17 00:00:00 2001 From: ghostslayer989 <45863583+ghostslayer989@users.noreply.github.com> Date: Mon, 30 Sep 2019 11:32:52 -0400 Subject: [PATCH] Enumerate instead of range/len. (AntiOCD) --- usbexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbexec.py b/usbexec.py index 770b1d62..2bdd157c 100644 --- a/usbexec.py +++ b/usbexec.py @@ -112,7 +112,7 @@ def command(self, request_data, response_length): def execute(self, response_length, *args): cmd = str() - for i in range(len(args)): + for i in enumerate(args): if isinstance(args[i], (int, long)): cmd += struct.pack('<%s' % self.cmd_arg_type(), args[i]) elif isinstance(args[i], basestring) and i == len(args) - 1: