Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

_is_ip_literal

codeintel.git_source._is_ip_literal

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Called by (1)
SymbolFileResolved by
parse_repo_specgit_source.pysame file
Inside (1)
SymbolFileResolved by
git_sourcegit_source.pysame file
codeintel.git_source._is_ip_literalbackend/app/codeintel/git_source.py, lines 197–202Open source
def _is_ip_literal(host: str) -> bool:    try:        ipaddress.ip_address(host.strip("[]"))    except ValueError:        return False    return True

What the index recorded

Signature
def _is_ip_literal(host: str) -> bool:
File
backend/app/codeintel/git_source.py
Lines
197–202
Parser
python-ast
Git blob
6f88470169e4935929c5f865a974bd86da564c1a
Call sites
2 named, 0 resolved, 2 left unlinked

Read it on GitHub at this commit