From 8a227c1f2bd9b409602f5ed4e8ccd4c20245ad6a Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 2 May 2019 12:11:05 +0100 Subject: [PATCH] Fix docstrings --- httpcore/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/httpcore/models.py b/httpcore/models.py index e31b9ac8..c7ed5ae2 100644 --- a/httpcore/models.py +++ b/httpcore/models.py @@ -48,7 +48,7 @@ class URL: if idna_authority != self.components.authority: self.components = self.components.copy_with(authority=idna_authority) - # Normalize schema and domain name. + # Normalize scheme and domain name. self.components = self.components.normalize() # Enforce absolute URLs by default. @@ -130,8 +130,7 @@ class URL: Return an absolute URL, using base_url as the base. """ # We drop any fragment portion, because RFC 3986 strictly - # treats URLs with a fragment portion as not being absolute URLs, - # but we want to treat them as such for the purposes of + # treats URLs with a fragment portion as not being absolute URLs. base_url = URL(base_url).copy_with(fragment=None) return URL(self.components.resolve_with(base_url.components)) -- 2.47.3