diff options
| author | sh1buy <shibnov@gmail.com> | 2015-04-11 03:29:21 +0300 |
|---|---|---|
| committer | sh1buy <shibnov@gmail.com> | 2015-04-11 03:29:21 +0300 |
| commit | 599f8343512277671d08e043a0505a82630c641d (patch) | |
| tree | a650bc3c4bf974b3ff4a9e929e25373252bd38ca /requests/models.py | |
| parent | f02d0f9e79a3aa3f0b716871f457ceb8f446bdba (diff) | |
| download | python-requests-599f8343512277671d08e043a0505a82630c641d.tar.gz | |
fix bug 2540
Diffstat (limited to 'requests/models.py')
| -rw-r--r-- | requests/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/requests/models.py b/requests/models.py index 545c5257..31bff1ac 100644 --- a/requests/models.py +++ b/requests/models.py @@ -358,7 +358,8 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): if not scheme: raise MissingSchema("Invalid URL {0!r}: No schema supplied. " - "Perhaps you meant http://{0}?".format(to_native_string(url,encoding='utf8'))) + "Perhaps you meant http://{0}?" + .format(to_native_string(url, 'utf8'))) if not host: raise InvalidURL("Invalid URL %r: No host supplied" % url) |
