Commit d8a46969 authored by R David Murray's avatar R David Murray

Use repr when printing unknown url type in urlopen.

parent 03b2a1ce
......@@ -281,7 +281,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment