mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #342 from bjedwards/patch-1
Fix syntax error in last commit.
This commit is contained in:
+1
-1
@@ -298,7 +298,7 @@ class Request(object):
|
||||
scheme, netloc, path, params, query, fragment = urlparse(self.url)
|
||||
|
||||
if not scheme:
|
||||
raise ValueError("Invalid URL %r: No schema supplied" %r self.url)
|
||||
raise ValueError("Invalid URL %r: No schema supplied" %self.url)
|
||||
|
||||
netloc = netloc.encode('idna')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user