Skip to content
Myr

Fix typos

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

authored by Jakub Wilk · committed by Jakub Wilk · parent 6cfe6e7 · Browse files · 5 files+9 added−9 removed
This commit

State

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

Diff stats

5 files+9 added−9 removed

  • other:+9 added−9 removed

5 files+9 added−9 removed

modified:requests/cookies.py+1 added-1 removed
366 unmodified lines
367 if jar is None:368 return None369370 if hasattr(jar, 'copy'):371 # We're dealing with an instane of RequestsCookieJar371 # We're dealing with an instance of RequestsCookieJar372 return jar.copy()373 # We're dealing with a generic CookieJar instance374 new_jar = copy.copy(jar)375 new_jar.clear()
110 unmodified lines
modified:requests/models.py+2 added-2 removed
322 unmodified lines
323324 def prepare_url(self, url, params):325 """Prepares the given HTTP URL."""326 #: Accept objects that have string representations.327 #: We're unable to blindy call unicode/str functions327 #: We're unable to blindly call unicode/str functions328 #: as this will include the bytestring indicator (b'')329 #: on python 3.x.330 #: https://github.com/kennethreitz/requests/pull/2238331 if isinstance(url, bytes):
298 unmodified lines
630 return ('location' in self.headers and self.status_code in REDIRECT_STATI)631632 @property633 def is_permanent_redirect(self):634 """True if this Response one of the permanant versions of redirect"""634 """True if this Response one of the permanent versions of redirect"""635 return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect))636637 @property638 def apparent_encoding(self):
210 unmodified lines
modified:requests/sessions.py+2 added-2 removed
323 unmodified lines
324 #: Maximum number of redirects allowed. If the request exceeds this325 #: limit, a :class:`TooManyRedirects` exception is raised.326 self.max_redirects = DEFAULT_REDIRECT_LIMIT327328 #: Trust environement settings for proxy configuration, default328 #: Trust environment settings for proxy configuration, default329 #: authentication and similar.330 self.trust_env = True331332 #: A CookieJar containing all currently outstanding cookies set on this
300 unmodified lines
633 return {'verify': verify, 'proxies': proxies, 'stream': stream,634 'cert': cert}635636 def get_adapter(self, url):637 """Returns the appropriate connnection adapter for the given URL."""637 """Returns the appropriate connection adapter for the given URL."""638 for (prefix, adapter) in self.adapters.items():639640 if url.lower().startswith(prefix):641 return adapter
39 unmodified lines
modified:HISTORY.rst+3 added-3 removed
48 unmodified lines
4950- The ``json`` parameter to ``post()`` and friends will now only be used if51 neither ``data`` nor ``files`` are present, consistent with the52 documentation.53- We now ignore empty fields in the ``NO_PROXY`` enviroment variable.53- We now ignore empty fields in the ``NO_PROXY`` environment variable.54- Fixed problem where ``httplib.BadStatusLine`` would get raised if combining55 ``stream=True`` with ``contextlib.closing``.56- Prevented bugs where we would attempt to return the same connection back to57 the connection pool twice when sending a Chunked body.
474 unmodified lines
532533- Improved mime-compatible JSON handling534- Proxy fixes535- Path hack fixes536- Case-Insensistive Content-Encoding headers536- Case-Insensitive Content-Encoding headers537- Support for CJK parameters in form posts5385395400.14.1 (2012-10-01)
78 unmodified lines
6190.13.0 (2012-05-29)620+++++++++++++++++++621622- Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_623- Allow disabling of cookie persistiance.623- Allow disabling of cookie persistence.624- New implementation of safe_mode625- cookies.get now supports default argument626- Session cookies not saved when Session.request is called with return_response=False627- Env: no_proxy support.
463 unmodified lines
modified:test_requests.py+1 added-1 removed
610 unmodified lines
611 prep = s.prepare_request(r)612 assert prep.hooks['response'] != []613 assert prep.hooks['response'] == [hook]614615 def test_session_hooks_are_overriden_by_request_hooks(self, httpbin):615 def test_session_hooks_are_overridden_by_request_hooks(self, httpbin):616 hook1 = lambda x, *args, **kwargs: x617 hook2 = lambda x, *args, **kwargs: x618 assert hook1 is not hook2619 s = requests.Session()
1122 unmodified lines