From 9806d2128080b8882803bba2846e7d143bc1b559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Thu, 10 May 2018 17:34:13 +0200 Subject: [PATCH] Isort + flake8 fix --- daphne/cli.py | 4 ++-- tests/test_cli.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daphne/cli.py b/daphne/cli.py index 31cfe2d..675878e 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -1,8 +1,7 @@ import argparse import logging import sys - -from argparse import Namespace, ArgumentError +from argparse import ArgumentError, Namespace from typing import Union from .access import AccessLogGenerator @@ -16,6 +15,7 @@ DEFAULT_HOST = "127.0.0.1" DEFAULT_PORT = 8000 str_or_none = Union[None, str] + class CommandLineInterface(object): """ Acts as the main CLI entry point for running the server. diff --git a/tests/test_cli.py b/tests/test_cli.py index f946a82..fa9881c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,8 +1,8 @@ # coding: utf8 import logging -from unittest import TestCase from argparse import ArgumentError +from unittest import TestCase from daphne.cli import CommandLineInterface from daphne.endpoints import build_endpoint_description_strings as build