pep8 compliance

This commit is contained in:
kakwa 2015-07-14 14:49:22 +02:00
parent afb3c0ef23
commit 315c226bf4
1 changed files with 3 additions and 1 deletions

View File

@ -659,7 +659,9 @@ class LdapCherry(object):
if params['attrs'][pwd1] != params['attrs'][pwd2]:
raise PasswordMissMatch()
if params['attrs'][pwd1] != '' and \
not self._checkppolicy(params['attrs'][pwd1])['match']:
not self._checkppolicy(
params['attrs'][pwd1]
)['match']:
raise PPolicyError()
params['attrs'][attr] = params['attrs'][pwd1]
if attr in params['attrs'] and params['attrs'][attr] != '':