Skip to content
Myr

hmmm

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 17d3e1d · 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
258 unmodified lines
259 return data, data260261262 def _build_url(self):263 """Build the actual URL to use"""263 """Build the actual URL to use."""264265 # Support for unicode domain names.266 parsed_url = list(urlparse(self.url))267 parsed_url[1] = parsed_url[1].encode('idna')
17 unmodified lines
285286 :param anyway: If True, request will be sent, even if it has287 already been sent.288 """289290 self._checks()291 success = False292293 # Logging
201 unmodified lines
495496497 def reduce_uri(self, uri, default_port=True):498 """Accept authority or URI and extract only the authority and path."""499500 # note HTTP URLs do not have a userinfo component501 parts = urllib2.urlparse.urlsplit(uri)502503 if parts[1]:504 # URI505 scheme = parts[0]506 authority = parts[1]
91 unmodified lines