mirror of
https://github.com/django/daphne.git
synced 2025-07-29 16:39:46 +03:00
PEP8
This commit is contained in:
parent
d4396d36df
commit
a4591347df
|
@ -1,9 +1,8 @@
|
||||||
import argparse
|
import argparse
|
||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
import sys
|
|
||||||
import signal
|
import signal
|
||||||
|
import sys
|
||||||
from argparse import ArgumentError, Namespace
|
from argparse import ArgumentError, Namespace
|
||||||
|
|
||||||
from asgiref.compatibility import is_double_callable
|
from asgiref.compatibility import is_double_callable
|
||||||
|
@ -188,14 +187,12 @@ class CommandLineInterface(object):
|
||||||
|
|
||||||
self.server = None
|
self.server = None
|
||||||
|
|
||||||
|
|
||||||
# For logrotate at SIGNALUSR1
|
# For logrotate at SIGNALUSR1
|
||||||
def logrotate(self, signum, stack):
|
def logrotate(self, signum, stack):
|
||||||
if self.access_log is not None:
|
if self.access_log is not None:
|
||||||
access_log_stream = open(self.access_log, "a", 1)
|
access_log_stream = open(self.access_log, "a", 1)
|
||||||
self.server.rotate_log_action(AccessLogGenerator(access_log_stream))
|
self.server.rotate_log_action(AccessLogGenerator(access_log_stream))
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def entrypoint(cls):
|
def entrypoint(cls):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user