projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
333ac10
)
use .format()
author
Kevin Burke
<kevin@twilio.com>
Sun, 20 Oct 2013 17:17:54 +0000
(10:17 -0700)
committer
Kevin Burke
<kevin@twilio.com>
Sun, 20 Oct 2013 17:17:54 +0000
(10:17 -0700)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index c836c6092e9e7223b7cb058dd3d6e2f2d2c0ca22..8a06430eccb24cf869cd92e8824121e2115cbd0f 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-324,8
+324,8
@@
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
scheme, auth, host, port, path, query, fragment = parse_url(url)
if not scheme:
- raise MissingSchema("Invalid URL
%r
: No schema supplied. "
- "Perhaps you meant http://
%s?" % (url,
url))
+ raise MissingSchema("Invalid URL
{0!r}
: No schema supplied. "
+ "Perhaps you meant http://
{0}?".format(
url))
if not host:
raise InvalidURL("Invalid URL %r: No host supplied" % url)