Some Doc and doctoring fixes by the Speling Poleece.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by travis · committed by travis · parent 23efd56 · Browse files · 11 files·+18 added−19 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
11 files+18 added−19 removed
- other:+18 added−19 removed
Provenance
- Commit
055f7c1- Tree
5a291a9- Author
travis <travis@vaught.net>- Committer
travis <travis@vaught.net>- Parent
23efd56
11 files changed+18 added−19 removed
modified:docs/community/faq.rst+1 added-2 removed
7 unmodified lines8 Encoded Data?9 -------------10 11 Requests automatically decompresses gzip-encoded responses, and does12-its best to decodes response content to unicode when possible.13-it's best to decodes response content to unicode when possible.12+its best to decode response content to unicode when possible.13 14 You can get direct access to the raw response (and even the socket),15 if needed as well.16 67 unmodified linesmodified:docs/community/support.rst+1 added-1 removed
1 unmodified line2 3 Support4 =======5 6-If you have a questions or issues about Requests, there are serveral options:6+If you have a questions or issues about Requests, there are several options:7 8 Send a Tweet9 ------------10 27 unmodified linesmodified:docs/community/updates.rst+1 added-1 removed
2 unmodified lines3 Updates4 =======5 6 If you'd like to stay up to date on the community and development of Requests,7-there are serveral options:7+there are several options:8 9 GitHub10 ------11 19 unmodified linesmodified:requests/api.py+1 added-1 removed
2 unmodified lines3 """4 requests.api5 ~~~~~~~~~~~~6 7-This module impliments the Requests API.7+This module implements the Requests API.8 9 :copyright: (c) 2011 by Kenneth Reitz.10 :license: ISC, see LICENSE for more details.11 148 unmodified linesmodified:requests/exceptions.py+1 added-1 removed
5 unmodified lines6 7 """8 9 class RequestException(Exception):10- """There was an ambiguous exception that occured while handling your10+ """There was an ambiguous exception that occurred while handling your11 request."""12 13 class AuthenticationError(RequestException):14 """The authentication credentials provided were invalid."""12 unmodified linesmodified:requests/hooks.py+1 added-1 removed
24 unmodified lines25 import warnings26 27 28 def dispatch_hook(key, hooks, hook_data):29- """Dipatches a hook dictionary on a given peice of data."""29+ """Dispatches a hook dictionary on a given piece of data."""30 31 hooks = hooks or dict()32 33 if key in hooks:7 unmodified linesmodified:requests/models.py+6 added-6 removed
39 unmodified lines40 url=None, headers=dict(), files=None, method=None, data=dict(),41 params=dict(), auth=None, cookiejar=None, timeout=None, redirect=False,42 allow_redirects=False, proxies=None, hooks=None):43 44- #: Float describ the timeout of the request.44+ #: Float describes the timeout of the request.45 # (Use socket.setdefaulttimeout() as fallback)46 self.timeout = timeout47 48 #: Request URL.49 self.url = url50 51- #: Dictonary of HTTP Headers to attach to the :class:`Request <Request>`.51+ #: Dictionary of HTTP Headers to attach to the :class:`Request <Request>`.52 self.headers = headers53 54 #: Dictionary of files to multipart upload (``{filename: content}``).55 self.files = files304 unmodified lines360 361 resp = opener(req)362 363 if settings.timeout_fallback:364- # restore gobal timeout364+ # restore global timeout365 socket.setdefaulttimeout(old_timeout)366 367 if self.cookiejar is not None:368 self.cookiejar.extract_cookies(resp, req)42 unmodified lines411 412 #: Final URL location of Response.413 self.url = None414 415- #: True if no :attr:`error` occured.415+ #: True if no :attr:`error` occurred.416 self.ok = False417 418- #: Resulting :class:`HTTPError` of request, if one occured.418+ #: Resulting :class:`HTTPError` of request, if one occurred.419 self.error = None420 421 #: A list of :class:`Response <Response>` objects from422 #: the history of the Request. Any redirect responses will end73 unmodified lines496 return self._content497 498 499 def raise_for_status(self):500- """Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""500+ """Raises stored :class:`HTTPError` or :class:`URLError`, if one occurred."""501 if self.error:502 raise self.error503 504 175 unmodified linesmodified:requests/sessions.py+1 added-1 removed
128 unmodified lines129 api.__all__)130 131 132 def session(**kwargs):133- """Returns a :class:`Session` for context-managment."""133+ """Returns a :class:`Session` for context-management."""134 135 return Session(**kwargs)modified:requests/status_codes.py+2 added-2 removed
45 unmodified lines46 411: ('length_required',),47 412: ('precondition_failed', 'precondition'),48 413: ('request_entity_too_large',),49 414: ('request_uri_too_large',),50- 415: ('unspported_media_type', 'unspported_media', 'media_type'),50+ 415: ('unsupported_media_type', 'unsupported_media', 'media_type'),51 416: ('requested_range_not_satisfiable', 'requested_range', 'range_not_satisfiable'),52 417: ('expectation_failed',),53 418: ('im_a_teapot', 'teapot', 'i_am_a_teapot'),54 422: ('unprocessable_entity', 'unprocessable'),55 423: ('locked',),56- 424: ('failed_depdendency', 'depdendency'),56+ 424: ('failed_dependency', 'dependency'),57 425: ('unordered_collection', 'unordered'),58 426: ('upgrade_required', 'upgrade'),59 444: ('no_response', 'none'),60 449: ('retry_with', 'retry'),23 unmodified linesmodified:requests/structures.py+1 added-1 removed
2 unmodified lines3 """4 requests.structures5 ~~~~~~~~~~~~~~~~~~~6 7-Datastructures that power Requests.7+Data structures that power Requests.8 9 """10 11 class CaseInsensitiveDict(dict):54 unmodified linesmodified:requests/utils.py+2 added-2 removed
53 unmodified lines54 if not len(headers) == i+1:55 collector.append(', ')56 57 58- # Remove trailing seperators.58+ # Remove trailing separators.59 if collector[-1] in (', ', '; '):60 del collector[-1]61 62 return ''.join(collector)135 unmodified lines198 199 def get_unicode_from_response(r):200 """Returns the requested content back in unicode.201 202- :param r: Reponse object to get unicode content from.202+ :param r: Response object to get unicode content from.203 204 Tried:205 206 1. charset from content-type48 unmodified lines