Skip to content
Myr

Merge pull request #1295 from sigmavirus24/issue1293

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

Fix #1293

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 1e465fd, afcc883 · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:requests/models.py+4 added-1 removed
282 unmodified lines
283284 # Support for unicode domain names and paths.285 scheme, netloc, path, _params, query, fragment = urlparse(url)286287 if not (scheme and netloc):287 if not scheme:288 raise MissingSchema("Invalid URL %r: No schema supplied" % url)289290 if not netloc:291 raise InvalidURL("Invalid URL %t: No netloc supplied" % url)292293 try:294 netloc = netloc.encode('idna').decode('utf-8')295 except UnicodeError:296 raise InvalidURL('URL has an invalid label.')
380 unmodified lines