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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| parse_repo_spec | git_source.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| git_source | git_source.py | same 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 TrueWhat 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
