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
Provenance
- Commit
23d9b07- Tree
6db0f64- Author
Jakub Wilk <jwilk@jwilk.net>- Committer
Jakub Wilk <jwilk@jwilk.net>- Parent
6cfe6e7
5 files changed+9 added−9 removed
modified:requests/cookies.py+1 added-1 removed
366 unmodified lines367 if jar is None:368 return None369 370 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 linesmodified:requests/models.py+2 added-2 removed
322 unmodified lines323 324 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 lines630 return ('location' in self.headers and self.status_code in REDIRECT_STATI)631 632 @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))636 637 @property638 def apparent_encoding(self):210 unmodified linesmodified:requests/sessions.py+2 added-2 removed
323 unmodified lines324 #: Maximum number of redirects allowed. If the request exceeds this325 #: limit, a :class:`TooManyRedirects` exception is raised.326 self.max_redirects = DEFAULT_REDIRECT_LIMIT327 328- #: Trust environement settings for proxy configuration, default328+ #: Trust environment settings for proxy configuration, default329 #: authentication and similar.330 self.trust_env = True331 332 #: A CookieJar containing all currently outstanding cookies set on this300 unmodified lines633 return {'verify': verify, 'proxies': proxies, 'stream': stream,634 'cert': cert}635 636 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():639 640 if url.lower().startswith(prefix):641 return adapter39 unmodified linesmodified:HISTORY.rst+3 added-3 removed
48 unmodified lines49 50 - 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 lines532 533 - 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 posts538 539 540 0.14.1 (2012-10-01)78 unmodified lines619 0.13.0 (2012-05-29)620 +++++++++++++++++++621 622 - 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 linesmodified:test_requests.py+1 added-1 removed
610 unmodified lines611 prep = s.prepare_request(r)612 assert prep.hooks['response'] != []613 assert prep.hooks['response'] == [hook]614 615- 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