From b88027f81d84c0f613056d78476443efc803674e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 10 Oct 2023 10:16:58 +0300 Subject: [PATCH] python: apply the new hooks --- python/pin.py | 2 +- python/ssid-valid-len.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/python/pin.py b/python/pin.py index 438fe41..9a121bd 100755 --- a/python/pin.py +++ b/python/pin.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import sys import secrets +import sys try: wantedCount = int(sys.argv[1]) diff --git a/python/ssid-valid-len.py b/python/ssid-valid-len.py index 4ed8065..930ad86 100755 --- a/python/ssid-valid-len.py +++ b/python/ssid-valid-len.py @@ -1,16 +1,14 @@ #!/usr/bin/env python3 - """ This script asks for a SSID name, counts it and tells whether it's of valid length """ - # Request input or assume "test" on empty. givenssid = str( input( - "Please enter the SSID you are thinking of (preferably 26 chars to fit _nomap): " + "Please enter the SSID you are thinking of (preferably 26 chars to fit _nomap): ", ) - or "test" + or "test", ) # Ensure it's UTF-8 and store the size. E.g. åäö are longer than oao