mirror of https://github.com/django/django.git
[1.5.x] Added missing parentheses in if clause
Backport of 1f8e7bb07
from master.
This commit is contained in:
parent
c39be8b836
commit
aaf6f39743
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue