projects
/
platform
/
upstream
/
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
c836c60
..
8a06430
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)