Skip to content
Myr

Merge pull request #1127 from sigmavirus24/fix1126

Before adoption: this commit came in with the history the project adopted, so no landing records it.

A simple fix

authored by Kenneth Reitz · committed by Kenneth Reitz · parents b94510f, ca85b4e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
281 unmodified lines
282283 # Support for unicode domain names and paths.284 scheme, netloc, path, _params, query, fragment = urlparse(url)285286 if not scheme:286 if not (scheme and netloc):287 raise MissingSchema("Invalid URL %r: No schema supplied" % url)288289 try:290 netloc = netloc.encode('idna').decode('utf-8')
357 unmodified lines