summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-02-02 12:13:32 +0100
committerClaude Paroz <claude@2xlibre.net>2013-02-02 12:14:53 +0100
commitaaf6f39743cfe24b0db7fa34017ca364ef7e5e06 (patch)
tree119de175143e6ebe64f5fb936a0195f121fbd0ce /django
parentc39be8b836282c1060e64dc17c6cb8184c14cf0b (diff)
[1.5.x] Added missing parentheses in if clause
Backport of 1f8e7bb07 from master.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/auth/hashers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py
index 188886858b..0fd9144ddf 100644
--- a/django/contrib/auth/hashers.py
+++ b/django/contrib/auth/hashers.py
@@ -133,7 +133,7 @@ def identify_hasher(encoded):
algorithm cannot be identified, or if hasher is not loaded.
"""
if ((len(encoded) == 32 and '$' not in encoded) or
- len(encoded) == 37 and encoded.startswith('md5$$')):
+ (len(encoded) == 37 and encoded.startswith('md5$$'))):
algorithm = 'unsalted_md5'
else:
algorithm = encoded.split('$', 1)[0]