Skip to content
Myr

Fix typo, %t -> %r

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

authored by papaeye · committed by papaeye · parent 2aabb71 · Browse files · 2 files+4 added−2 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+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:requests/models.py+1 added-1 removed
289 unmodified lines
290 if not scheme:291 raise MissingSchema("Invalid URL %r: No schema supplied" % url)292293 if not host:294 raise InvalidURL("Invalid URL %t: No host supplied" % url)294 raise InvalidURL("Invalid URL %r: No host supplied" % url)295296 # Only want to apply IDNA to the hostname297 try:298 host = host.encode('idna').decode('utf-8')
388 unmodified lines
modified:test_requests.py+3 added-1 removed
12 unmodified lines
13from requests.auth import HTTPDigestAuth14from requests.adapters import HTTPAdapter15from requests.compat import str, cookielib16from requests.cookies import cookiejar_from_dict17from requests.exceptions import InvalidURL, MissingSchema18from requests.structures import CaseInsensitiveDict1920try:21 import StringIO
31 unmodified lines
53 requests.patch54 requests.post5556 def test_invalid_url(self):56 self.assertRaises(ValueError, requests.get, 'hiwpefhipowhefopw')57 self.assertRaises(MissingSchema, requests.get, 'hiwpefhipowhefopw')58 self.assertRaises(InvalidURL, requests.get, 'http://')5960 def test_basic_building(self):61 req = requests.Request()62 req.url = 'http://kennethreitz.org/'
643 unmodified lines