Merge pull request #10064 from jacobtylerwalls/urlunsplit-explicit-type

This commit is contained in:
Tzu-ping Chung 2021-06-14 00:41:56 +08:00 committed by GitHub
commit c44b23c0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

0
news/10064.trivial.rst Normal file
View File

View File

@ -150,7 +150,7 @@ class Link(KeyBasedCompareMixin):
def url_without_fragment(self):
# type: () -> str
scheme, netloc, path, query, fragment = self._parsed_url
return urllib.parse.urlunsplit((scheme, netloc, path, query, None))
return urllib.parse.urlunsplit((scheme, netloc, path, query, ''))
_egg_fragment_re = re.compile(r'[#&]egg=([^&]*)')