Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing parentheses in if clause

  • Loading branch information...
commit 1f8e7bb07592f422406313e3eb41f78790ec94a5 1 parent 63d6a50
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/hashers.py
View
2  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]
Please sign in to comment.
Something went wrong with that request. Please try again.