Skip to content
Myr

Fixes #2666: None is the default value of file for httpx.NetRCAuth (#2667)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alex Prengère · committed by GitHub · parent 4b5a92e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_auth.py+1 added-1 removed
145 unmodified lines
146 """147 Use a 'netrc' file to lookup basic auth credentials based on the url host.148 """149150 def __init__(self, file: typing.Optional[str]):150 def __init__(self, file: typing.Optional[str] = None):151 self._netrc_info = netrc.netrc(file)152153 def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:154 auth_info = self._netrc_info.authenticators(request.url.host)
193 unmodified lines