Merge: Use repr when printing unknown url type in urlopen.

This commit is contained in:
R David Murray 2013-04-03 07:01:07 -04:00
commit c616604a15

View file

@ -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)