Skip to content
Myr

Fix docstrings

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

authored by Tom Christie · committed by Tom Christie · parent 0c6f618 · Browse files · 1 file+2 added−3 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:httpcore/models.py+2 added-3 removed
46 unmodified lines
47 idna_authority = self.components.authority.encode("idna").decode("ascii")48 if idna_authority != self.components.authority:49 self.components = self.components.copy_with(authority=idna_authority)5051 # Normalize schema and domain name.51 # Normalize scheme and domain name.52 self.components = self.components.normalize()5354 # Enforce absolute URLs by default.55 if not allow_relative:
73 unmodified lines
129 """130 Return an absolute URL, using base_url as the base.131 """132 # We drop any fragment portion, because RFC 3986 strictly133 # treats URLs with a fragment portion as not being absolute URLs,134 # but we want to treat them as such for the purposes of133 # treats URLs with a fragment portion as not being absolute URLs.134 base_url = URL(base_url).copy_with(fragment=None)135 return URL(self.components.resolve_with(base_url.components))136137 def __hash__(self) -> int:
492 unmodified lines