mirror of https://github.com/explosion/spaCy.git
Update docstring to match spaCy format.
This commit is contained in:
parent
f14b63e7a3
commit
4049c57521
|
@ -1742,9 +1742,9 @@ def all_equal(iterable):
|
||||||
def _is_port_in_use(port: int, host: str = "localhost") -> bool:
|
def _is_port_in_use(port: int, host: str = "localhost") -> bool:
|
||||||
"""Check if 'host:port' is in use. Return True if it is, False otherwise.
|
"""Check if 'host:port' is in use. Return True if it is, False otherwise.
|
||||||
|
|
||||||
Keyword arguments:
|
port (int): the port to check
|
||||||
port -- the port to check
|
host (str): the host to check (default "localhost")
|
||||||
host -- the host to check (default "localhost")
|
RETURNS (bool): Whether 'host:port' is in use.
|
||||||
"""
|
"""
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue