Skip to content

Commit

Permalink
Merge pull request google#32 from 2xyo/random
Browse files Browse the repository at this point in the history
Remove apostrophe from random chars
  • Loading branch information
berggren committed Nov 12, 2014
2 parents 8fd8e92 + 73ee928 commit 59b0202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/gen_secret_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@


def generate_secret_key():
allowed_chars = string.letters + string.digits + string.punctuation
allowed_chars = string.letters + string.digits + \
string.punctuation.replace("'", "")
return get_random_string(length=50, allowed_chars=allowed_chars)

if __name__ == "__main__":
Expand Down

0 comments on commit 59b0202

Please sign in to comment.