Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.5.x] Added missing parentheses in if clause

Backport of 1f8e7bb from master.
  • Loading branch information...
commit aaf6f39743cfe24b0db7fa34017ca364ef7e5e06 1 parent c39be8b
@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.