From 5c6bbe1a2ed2e45e60a40d96331670e40c718e8b Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 3 Dec 2020 09:25:46 +0100 Subject: [PATCH] Improve for loop without i using --- jaklis.py | 2 +- lib/cesium.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jaklis.py b/jaklis.py index 23ecd7a..97a4d43 100755 --- a/jaklis.py +++ b/jaklis.py @@ -81,7 +81,7 @@ if args.version: def createTmpDunikey(): # Generate pseudo-random nonce nonce=[] - for i in range(32): + for _ in range(32): nonce.append(random.choice(string.ascii_letters + string.digits)) nonce = ''.join(nonce) keyPath = "/tmp/secret.dunikey-" + nonce diff --git a/lib/cesium.py b/lib/cesium.py index d5d74b6..62d846b 100644 --- a/lib/cesium.py +++ b/lib/cesium.py @@ -199,7 +199,7 @@ class SendToCesium: # Generate pseudo-random nonce nonce=[] - for i in range(32): + for _ in range(32): nonce.append(random.choice(string.ascii_letters + string.digits)) self.nonce = base64.b64decode(''.join(nonce))