mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 20:18:02 +00:00
Cleanup (pep8, flakes)
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
|
||||||
def random_string(len=10):
|
def random_string(len=10):
|
||||||
'''
|
'''
|
||||||
Return some random string with default length 10
|
Return some random string with default length 10
|
||||||
'''
|
'''
|
||||||
return ''.join(random.SystemRandom().choice(
|
return ''.join(random.SystemRandom().choice(
|
||||||
string.ascii_lowercase +
|
string.ascii_lowercase + string.digits) for _ in range(10))
|
||||||
string.digits) for _ in range(10))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user