From 1f8e7bb07592f422406313e3eb41f78790ec94a5 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 2 Feb 2013 12:13:32 +0100 Subject: [PATCH] Added missing parentheses in if clause --- 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]