From: Georg Brandl Date: Sun, 24 Jun 2012 18:01:05 +0000 (+0200) Subject: Partial backport of 612f34e31270: fix spacing error in exception message. X-Git-Tag: v3.3.0b1~41^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=496660c56b2a8d07534dbad4cae5aa0aadaae099;p=python Partial backport of 612f34e31270: fix spacing error in exception message. --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 0035e7067f..d6f9f9a1bc 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(