Skip to content
Myr

Merge pull request #341 from ojii/patch-1

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

Give a more useful error message when the URL supplied does not contain ...

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 638532d, 3415e6d · 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
296 unmodified lines
297 # Support for unicode domain names and paths.298 scheme, netloc, path, params, query, fragment = urlparse(self.url)299300 if not scheme:301 raise ValueError()301 raise ValueError("Invalid URL %r: No schema supplied" %r self.url)302303 netloc = netloc.encode('idna')304305 if isinstance(path, unicode):
403 unmodified lines