Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
tokibito committed Feb 23, 2022
1 parent aec7cf1 commit d2628f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion django_ftpserver/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.5.0'
__version__ = '0.8.0'
2 changes: 0 additions & 2 deletions django_ftpserver/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
with older versions of django
"""

import django


def get_username_field():
from django.contrib.auth import get_user_model
Expand Down
5 changes: 4 additions & 1 deletion django_ftpserver/management/commands/ftpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ def handle(self, *args, **options):
handler_class = (
utils.get_settings_value('FTPSERVER_TLSHANDLER')
) or handlers.TLS_FTPHandler
handler_options = {'tls_control_required': True, 'tls_data_required': True}
handler_options = {
'tls_control_required': True,
'tls_data_required': True
}
else:
# unsupported
raise CommandError(
Expand Down
1 change: 0 additions & 1 deletion django_ftpserver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def make_server(
* certfile
* keyfile
"""
from . import compat
if isinstance(handler_class, str):
handler_class = import_class(handler_class)

Expand Down

0 comments on commit d2628f3

Please sign in to comment.