Skip to content

Commit

Permalink
preen
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 30, 2024
1 parent 206f40d commit da3cc58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yarl/_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ def encode_url(url_str: str) -> "URL":
cache["raw_query_string"] = query
cache["raw_fragment"] = fragment
self = object.__new__(URL)
self._cache = cache
self._scheme = scheme
self._netloc = netloc
self._path = path
self._query = query
self._fragment = fragment
self._cache = cache
return self


Expand Down Expand Up @@ -1403,8 +1403,7 @@ def human_repr(self) -> str:
if TYPE_CHECKING:
assert fragment is not None
netloc = make_netloc(user, password, host, self.explicit_port)
scheme = self._scheme
return unsplit_result(scheme, netloc, path, query_string, fragment)
return unsplit_result(self._scheme, netloc, path, query_string, fragment)


_DEFAULT_IDNA_SIZE = 256
Expand Down

0 comments on commit da3cc58

Please sign in to comment.