]> granicus.if.org Git - python/commitdiff
Partial backport of 612f34e31270: fix spacing error in exception message.
authorGeorg Brandl <georg@python.org>
Sun, 24 Jun 2012 18:01:05 +0000 (20:01 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 24 Jun 2012 18:01:05 +0000 (20:01 +0200)
Lib/urllib/request.py

index 0035e7067fdd6a6b0dc2d6881ba8c3e88625c2c6..d6f9f9a1bcaa8efc186d9499da9fb781eed84068 100644 (file)
@@ -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(