mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-29 18:54:07 +03:00
Reformat.
This commit is contained in:
parent
5710d8371d
commit
b56f3e7c5d
|
@ -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")
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user