diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-02-02 12:13:32 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-02-02 12:13:47 +0100 |
| commit | 1f8e7bb07592f422406313e3eb41f78790ec94a5 (patch) | |
| tree | f1ba930f45b4bd3a77d3900db36ab872afa04957 | |
| parent | 63d6a50dd8ab4f47c9ae11c1d2a4c4c7eed06be6 (diff) | |
Added missing parentheses in if clause
| -rw-r--r-- | django/contrib/auth/hashers.py | 2 |
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] |
