Commit 5ae1ce6e authored by Michal Čihař's avatar Michal Čihař

Wrap long lines

parent da99ad0c
......@@ -141,7 +141,9 @@ class RegistrationForm(RegistrationFormUniqueEmail):
Password validation, requires length of six chars.
'''
if len(self.cleaned_data['password1']) < 6:
raise forms.ValidationError(_(u'Password needs to have at least six characters.'))
raise forms.ValidationError(
_(u'Password needs to have at least six characters.')
)
return self.cleaned_data['password1']
def clean_username(self):
......@@ -149,5 +151,7 @@ class RegistrationForm(RegistrationFormUniqueEmail):
Username validation, requires length of five chars.
'''
if len(self.cleaned_data['username']) < 5:
raise forms.ValidationError(_(u'Username needs to have at least five characters.'))
raise forms.ValidationError(
_(u'Username needs to have at least five characters.')
)
return super(RegistrationForm, self).clean_username()
......@@ -66,7 +66,9 @@ def get_plural_type(code, pluralequation):
elif base_code in ('ar'):
return PLURAL_ARABIC
logger.error('Can not guess type of plural for %s: %s', code, pluralequation)
logger.error(
'Can not guess type of plural for %s: %s', code, pluralequation
)
return PLURAL_UNKNOWN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment