mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-02-18 06:30:58 +01:00
python: apply the new hooks
This commit is contained in:
parent
1a58db1a6a
commit
b88027f81d
@ -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])
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user