MCPcopy
hub / github.com/mhinz/neovim-remote / parse_address

Function parse_address

nvr/nvr.py:398–405  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

396
397
398def parse_address(address):
399 try:
400 host, port = address.rsplit(':', 1)
401 if port.isdigit():
402 return 'tcp', host, port
403 raise ValueError
404 except ValueError:
405 return 'socket', address, None
406
407
408def main(argv=sys.argv, env=os.environ):

Callers 1

attachMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected