Skip to content

Commit f02d0f9

Browse files
committed
Fix bug 2540
1 parent f89b5a5 commit f02d0f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requests/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def prepare_url(self, url, params):
358358

359359
if not scheme:
360360
raise MissingSchema("Invalid URL {0!r}: No schema supplied. "
361-
"Perhaps you meant http://{0}?".format(url.encode('utf8')))
361+
"Perhaps you meant http://{0}?".format(to_native_string(url,encoding='utf8')))
362362

363363
if not host:
364364
raise InvalidURL("Invalid URL %r: No host supplied" % url)

0 commit comments

Comments
 (0)