forked from gergely/calendar-social
PyLint happiness (again)
This commit is contained in:
@@ -31,7 +31,7 @@ from wtforms.widgets import TextArea
|
||||
from calsocial.models import EventVisibility, EVENT_VISIBILITY_TRANSLATIONS
|
||||
|
||||
|
||||
class UsernameAvailable(object): # pylint: disable=too-few-public-methods
|
||||
class UsernameAvailable: # pylint: disable=too-few-public-methods
|
||||
"""Checks if a username is available
|
||||
"""
|
||||
|
||||
@@ -62,7 +62,7 @@ class UsernameAvailable(object): # pylint: disable=too-few-public-methods
|
||||
raise StopValidation(message)
|
||||
|
||||
|
||||
class EmailAvailable(object): # pylint: disable=too-few-public-methods
|
||||
class EmailAvailable: # pylint: disable=too-few-public-methods
|
||||
"""Checks if an email address is available
|
||||
"""
|
||||
|
||||
@@ -408,5 +408,6 @@ class ProfileForm(FlaskForm):
|
||||
})
|
||||
FlaskForm.__init__(self, *args, **kwargs)
|
||||
|
||||
self.builtin_avatar.choices = [(name, name) for name in current_app.config['BUILTIN_AVATARS']]
|
||||
self.builtin_avatar.choices = [(name, name)
|
||||
for name in current_app.config['BUILTIN_AVATARS']]
|
||||
self.profile = profile
|
||||
|
Reference in New Issue
Block a user