mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merge: Use repr when printing unknown url type in urlopen.
This commit is contained in:
commit
c616604a15
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ class Request:
|
|||
def _parse(self):
|
||||
self.type, rest = splittype(self.full_url)
|
||||
if self.type is None:
|
||||
raise ValueError("unknown url type: %s" % self.full_url)
|
||||
raise ValueError("unknown url type: %r" % self.full_url)
|
||||
self.host, self.selector = splithost(rest)
|
||||
if self.host:
|
||||
self.host = unquote(self.host)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue