diff options
| author | Simon Charette <charette.s@gmail.com> | 2013-08-29 19:20:00 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2013-08-30 10:57:51 -0400 |
| commit | 11cd7388f77aa9d12ab6b57285c3801b237e241b (patch) | |
| tree | e4853e5c87e1de082660e10b2144b91b4d9b7d0c /django/utils/crypto.py | |
| parent | e4a67fd90626ced92a61f38ef682d2aa4f34a3ff (diff) | |
Fixed #20989 -- Removed useless explicit list comprehensions.
Diffstat (limited to 'django/utils/crypto.py')
| -rw-r--r-- | django/utils/crypto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/crypto.py b/django/utils/crypto.py index 15db972560..3c15b8b35b 100644 --- a/django/utils/crypto.py +++ b/django/utils/crypto.py @@ -73,7 +73,7 @@ def get_random_string(length=12, time.time(), settings.SECRET_KEY)).encode('utf-8') ).digest()) - return ''.join([random.choice(allowed_chars) for i in range(length)]) + return ''.join(random.choice(allowed_chars) for i in range(length)) def constant_time_compare(val1, val2): |
