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)) raise ValueError(Errors.E1048.format(host=host))
if available_port != port: 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) httpd = simple_server.make_server(host, available_port, app)
print(f"\nUsing the '{style}' visualizer") print(f"\nUsing the '{style}' visualizer")

View File

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