diff options
Diffstat (limited to 'urllib3/request.py')
-rw-r--r-- | urllib3/request.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/urllib3/request.py b/urllib3/request.py index a1a12bc..d5aa62d 100644 --- a/urllib3/request.py +++ b/urllib3/request.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import try: from urllib.parse import urlencode except ImportError: @@ -133,7 +134,8 @@ class RequestMethods(object): if fields: if 'body' in urlopen_kw: - raise TypeError('request got values for both \'fields\' and \'body\', can only specify one.') + raise TypeError( + "request got values for both 'fields' and 'body', can only specify one.") if encode_multipart: body, content_type = encode_multipart_formdata(fields, boundary=multipart_boundary) |