Skip to content
Myr

Merge pull request #6017 from nateprewitt/schema2scheme

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

Fix erroneous use of 'schema' instead of 'scheme'

authored by Ian Stapleton Cordasco · committed by GitHub · parents e2064a2, 4246792 · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:requests/exceptions.py+2 added-2 removed
78 unmodified lines
79 """Too many redirects."""808182class MissingSchema(RequestException, ValueError):83 """The URL schema (e.g. http or https) is missing."""83 """The URL scheme (e.g. http or https) is missing."""848586class InvalidSchema(RequestException, ValueError):87 """See defaults.py for valid schemas."""87 """The URL scheme provided is either invalid or unsupported."""888990class InvalidURL(RequestException, ValueError):91 """The URL provided was somehow invalid."""
42 unmodified lines
modified:requests/models.py+1 added-1 removed
384 unmodified lines
385 except LocationParseError as e:386 raise InvalidURL(*e.args)387388 if not scheme:389 error = ("Invalid URL {0!r}: No schema supplied. Perhaps you meant http://{0}?")389 error = ("Invalid URL {0!r}: No scheme supplied. Perhaps you meant http://{0}?")390 error = error.format(to_native_string(url, 'utf8'))391392 raise MissingSchema(error)393
580 unmodified lines