From aaf6f39743cfe24b0db7fa34017ca364ef7e5e06 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 2 Feb 2013 12:13:32 +0100 Subject: [PATCH] [1.5.x] Added missing parentheses in if clause Backport of 1f8e7bb07 from master. --- django/contrib/auth/hashers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py index 188886858bf..0fd9144ddff 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]