Reformat.

This commit is contained in:
Zhangrp 2022-12-08 16:10:02 +08:00
parent 5710d8371d
commit b56f3e7c5d
2 changed files with 5 additions and 2 deletions

View File

@ -114,7 +114,9 @@ def serve(
raise ValueError(Errors.E1048.format(host=host))
if available_port != port:
warnings.warn(Warnings.W124.format(host=host, port=port, available_port=available_port))
warnings.warn(
Warnings.W124.format(host=host, port=port, available_port=available_port)
)
httpd = simple_server.make_server(host, available_port, app)
print(f"\nUsing the '{style}' visualizer")

View File

@ -32,6 +32,7 @@ import inspect
import pkgutil
import logging
import socket
try:
import cupy.random
except ImportError:
@ -1747,4 +1748,4 @@ def is_port_in_use(port):
except socket.error:
return True
finally:
s.close()
s.close()