Skip to content

Commit

Permalink
Added missing parentheses in if clause
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Feb 2, 2013
1 parent 63d6a50 commit 1f8e7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/auth/hashers.py
Expand Up @@ -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]
Expand Down

0 comments on commit 1f8e7bb

Please sign in to comment.