Browse Source

fix PEP8

auth
clowwindy 10 years ago
parent
commit
dda8f31bd3
  1. 3
      shadowsocks/server.py

3
shadowsocks/server.py

@ -71,7 +71,8 @@ def main():
def child_handler(signum, _): def child_handler(signum, _):
logging.warn('received SIGQUIT, doing graceful shutting down..') logging.warn('received SIGQUIT, doing graceful shutting down..')
map(lambda s: s.close(next_tick=True), tcp_servers + udp_servers) 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: try:
loop = eventloop.EventLoop() loop = eventloop.EventLoop()
dns_resolver.add_to_loop(loop) dns_resolver.add_to_loop(loop)

Loading…
Cancel
Save