MCPcopy
hub / github.com/scrapy/scrapy / normalize_bind_address

Function normalize_bind_address

scrapy/utils/_download_handlers.py:148–153  ·  view source on GitHub ↗
(
    value: str | tuple[str, int] | None,
)

Source from the content-addressed store, hash-verified

146
147
148def normalize_bind_address(
149 value: str | tuple[str, int] | None,
150) -> tuple[str, int] | None:
151 if isinstance(value, str):
152 return (value, 0)
153 return value

Callers 3

_get_agentMethod · 0.90
__init__Method · 0.90
_get_agentMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected