summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-03 10:58:34 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-03 10:58:34 (GMT)
commitd8a46969f7034d9a56e70d24fc77e15154135199 (patch)
treeaf7595495f5c6e8d9de9b7f9be4a2e7c5532454f /Lib/urllib
parent03b2a1ce51ecaf2d53821a6cfbde5f072d5e9a73 (diff)
downloadcpython-d8a46969f7034d9a56e70d24fc77e15154135199.zip
cpython-d8a46969f7034d9a56e70d24fc77e15154135199.tar.gz
cpython-d8a46969f7034d9a56e70d24fc77e15154135199.tar.bz2
Use repr when printing unknown url type in urlopen.
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 5ddec5f..e6f877d 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -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)