Added missing parentheses in if clause

This commit is contained in:
Claude Paroz 2013-02-02 12:13:32 +01:00
parent 63d6a50dd8
commit 1f8e7bb075
1 changed files with 1 additions and 1 deletions

View File

@ -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]