python: apply the new hooks

This commit is contained in:
Aminda Suomalainen 2023-10-10 10:16:58 +03:00
parent 1a58db1a6a
commit b88027f81d
Signed by: Mikaela
SSH Key Fingerprint: SHA256:y2OpGEbett3Fqn8XFrP0X4mWfCVKf4rWkxERzqPY81U
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
import secrets import secrets
import sys
try: try:
wantedCount = int(sys.argv[1]) wantedCount = int(sys.argv[1])

View File

@ -1,16 +1,14 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
This script asks for a SSID name, counts it and tells whether it's of valid This script asks for a SSID name, counts it and tells whether it's of valid
length length
""" """
# Request input or assume "test" on empty. # Request input or assume "test" on empty.
givenssid = str( givenssid = str(
input( 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 # Ensure it's UTF-8 and store the size. E.g. åäö are longer than oao