mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
utils: Remove unused method
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
1a11b4967a
commit
89f31db71f
@ -121,10 +121,6 @@ class YAMLFile(object):
|
|||||||
return os.stat(self.yaml_file).st_size == 0
|
return os.stat(self.yaml_file).st_size == 0
|
||||||
|
|
||||||
|
|
||||||
def yes_or_no(cond):
|
|
||||||
return 'yes' if cond else 'no'
|
|
||||||
|
|
||||||
|
|
||||||
def generate_password(size=32):
|
def generate_password(size=32):
|
||||||
"""Generate a random password using ascii alphabet and digits."""
|
"""Generate a random password using ascii alphabet and digits."""
|
||||||
chars = (random.SystemRandom().choice(string.ascii_letters + string.digits)
|
chars = (random.SystemRandom().choice(string.ascii_letters + string.digits)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user