From 1e9ca84de7527234ae2a6479fc163a04c2cafe5d Mon Sep 17 00:00:00 2001 From: Audrey Roy Greenfeld Date: Mon, 13 Feb 2017 21:59:21 -0800 Subject: [PATCH] Removed backslashes from punctuation used in random key --- hooks/post_gen_project.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index fbc6cb698..4a9d14e2f 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -36,6 +36,7 @@ def get_random_string(length=50): a 71-bit value. log_2((26+26+10)^12) =~ 71 bits """ punctuation = string.punctuation.replace('"', '').replace("'", '') + punctuation = punctuation.replace('\\', '') if using_sysrandom: return ''.join(random.choice( string.digits + string.ascii_letters + punctuation