pass flake8

This commit is contained in:
(Zenix) Han-Sheng Huang 2017-03-02 13:42:55 +09:00
parent e5c32e9b48
commit 62bf213a6e

View File

@ -397,7 +397,7 @@ def serve_multiple(server_settings, workers, stop_event=None):
server_settings['reuse_port'] = True server_settings['reuse_port'] = True
# Handling when custom socket is not provided. # Handling when custom socket is not provided.
if server_settings.get('sock') == None: if server_settings.get('sock') is None:
sock = socket() sock = socket()
sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
sock.bind((server_settings['host'], server_settings['port'])) sock.bind((server_settings['host'], server_settings['port']))