summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-06-24 18:01:05 (GMT)
committerGeorg Brandl <georg@python.org>2012-06-24 18:01:05 (GMT)
commit496660c56b2a8d07534dbad4cae5aa0aadaae099 (patch)
treee4fcebb6ce6f0d50203b6eef7043fe481c1fef3b /Lib
parent5135992164f4c0df8d18d3b486431b28214db16b (diff)
downloadcpython-496660c56b2a8d07534dbad4cae5aa0aadaae099.zip
cpython-496660c56b2a8d07534dbad4cae5aa0aadaae099.tar.gz
cpython-496660c56b2a8d07534dbad4cae5aa0aadaae099.tar.bz2
Partial backport of 612f34e31270: fix spacing error in exception message.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib/request.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 0035e70..d6f9f9a 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1066,8 +1066,8 @@ class AbstractHTTPHandler(BaseHandler):
if request.data is not None: # POST
data = request.data
if isinstance(data, str):
- msg = "POST data should be bytes or an iterable of bytes."\
- "It cannot be str"
+ msg = "POST data should be bytes or an iterable of bytes. "\
+ "It cannot be of type str."
raise TypeError(msg)
if not request.has_header('Content-type'):
request.add_unredirected_header(