Skip to content
Myr

Remove needless whitespace strips (#1048)

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

authored by Taneli Hukkinen · committed by GitHub · parent 8dea2c2 · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:httpx/_auth.py+1 added-1 removed
74 unmodified lines
75 def build_auth_header(76 self, username: typing.Union[str, bytes], password: typing.Union[str, bytes]77 ) -> str:78 userpass = b":".join((to_bytes(username), to_bytes(password)))79 token = b64encode(userpass).decode().strip()79 token = b64encode(userpass).decode()80 return f"Basic {token}"818283class DigestAuth(Auth):
167 unmodified lines
modified:httpx/_config.py+1 added-1 removed
353 unmodified lines
354 self.mode = mode355356 def build_auth_header(self, username: str, password: str) -> str:357 userpass = (username.encode("utf-8"), password.encode("utf-8"))358 token = b64encode(b":".join(userpass)).decode().strip()358 token = b64encode(b":".join(userpass)).decode()359 return f"Basic {token}"360361 def __repr__(self) -> str:362 return (
9 unmodified lines