summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-03 11:01:07 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-03 11:01:07 (GMT)
commitc616604a15ad7954c6e99238a9870934ee66393a (patch)
treeafcde5aba1b011580e1764d51f367c6b36317afd /Lib
parent9c7dfbf72017bbf7a56e1c76f69afbff54efa3ab (diff)
parentd8a46969f7034d9a56e70d24fc77e15154135199 (diff)
downloadcpython-c616604a15ad7954c6e99238a9870934ee66393a.zip
cpython-c616604a15ad7954c6e99238a9870934ee66393a.tar.gz
cpython-c616604a15ad7954c6e99238a9870934ee66393a.tar.bz2
Merge: Use repr when printing unknown url type in urlopen.
Diffstat (limited to 'Lib')
-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 5c87591..17c9251 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -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)