Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added missing parentheses in if clause

  • Loading branch information...
commit 1f8e7bb07592f422406313e3eb41f78790ec94a5 1 parent 63d6a50
Claude Paroz authored February 02, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/hashers.py
2  django/contrib/auth/hashers.py
@@ -133,7 +133,7 @@ def identify_hasher(encoded):
133 133
     algorithm cannot be identified, or if hasher is not loaded.
134 134
     """
135 135
     if ((len(encoded) == 32 and '$' not in encoded) or
136  
-            len(encoded) == 37 and encoded.startswith('md5$$')):
  136
+            (len(encoded) == 37 and encoded.startswith('md5$$'))):
137 137
         algorithm = 'unsalted_md5'
138 138
     else:
139 139
         algorithm = encoded.split('$', 1)[0]

0 notes on commit 1f8e7bb

Please sign in to comment.
Something went wrong with that request. Please try again.