From dda8f31bd3c9c41daf68cc46b17e894f17b5e058 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sat, 20 Sep 2014 20:21:09 +0800 Subject: [PATCH] fix PEP8 --- shadowsocks/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocks/server.py b/shadowsocks/server.py index 16d39f0..fd38dd9 100755 --- a/shadowsocks/server.py +++ b/shadowsocks/server.py @@ -71,7 +71,8 @@ def main(): def child_handler(signum, _): logging.warn('received SIGQUIT, doing graceful shutting down..') map(lambda s: s.close(next_tick=True), tcp_servers + udp_servers) - signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM), child_handler) + signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM), + child_handler) try: loop = eventloop.EventLoop() dns_resolver.add_to_loop(loop)