Commit c730eeeb by Marcin Bury

Merge pull request #25 from FesterCluck/patch-1

string.letters to string.ascii_letters
parents 22259976 6f819bac
...@@ -314,7 +314,7 @@ def pprint_dict_in_order(dictionary, order=None): ...@@ -314,7 +314,7 @@ def pprint_dict_in_order(dictionary, order=None):
prettyprint(rest_keys, dictionary[rest_keys]) prettyprint(rest_keys, dictionary[rest_keys])
def random_text(length, alph=string.letters+string.digits): def random_text(length, alph=string.ascii_letters+string.digits):
""" Random text generator. NOT crypto safe. """ Random text generator. NOT crypto safe.
Generates random text with specified length and alphabet. Generates random text with specified length and alphabet.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment