Some cosmetic updates to the docs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kwpolska · committed by Kwpolska · parent 949a29c · Browse files · 6 files·+11 added−11 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Signed-off-by: Kwpolska <kwpolska@gmail.com>
Diff stats
6 files+11 added−11 removed
- other:+11 added−11 removed
Provenance
- Commit
ca033b8- Tree
707100e- Author
Kwpolska <kwpolska@gmail.com>- Committer
Kwpolska <kwpolska@gmail.com>- Parent
949a29c
6 files changed+11 added−11 removed
modified:docs/dev/philosophy.rst+1 added-1 removed
36 unmodified lines37 ~~~~~~~~~~~~~~~~~~~~~38 39 Distributions have been made for many Linux repositories, including: Ubuntu, Debian, RHEL, and Arch.40 41-These distributions are sometimes divergent forks, or are otherwise not kept up-to-date with the latest code and bugfixes. PyPI (and its mirrors) and GitHub are the official distribution sources; alternatives are not supported by the requests project.41+These distributions are sometimes divergent forks, or are otherwise not kept up-to-date with the latest code and bugfixes. PyPI (and its mirrors) and GitHub are the official distribution sources; alternatives are not supported by the Requests project.modified:docs/dev/todo.rst+1 added-1 removed
44 unmodified lines45 - PyPy 1.946 47 Support for Python 3.1 and 3.2 may be dropped at any time.48 49-Google App Engine will never be officially supported. Pull requests for compatibility will be accepted, as long as they don't complicate the codebase.49+Google App Engine will never be officially supported. Pull Requests for compatibility will be accepted, as long as they don't complicate the codebase.50 51 52 Are you crazy?53 --------------7 unmodified linesmodified:docs/user/install.rst+4 added-4 removed
8 unmodified lines9 10 Distribute & Pip11 ----------------12 13-Installing requests is simple with `pip <http://www.pip-installer.org/>`_::13+Installing Requests is simple with `pip <http://www.pip-installer.org/>`_::14 15 $ pip install requests16 17 or, with `easy_install <http://pypi.python.org/pypi/setuptools>`_::3 unmodified lines21 But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.22 23 24 25-Cheeseshop Mirror25+Cheeseshop (PyPI) Mirror26 -----------------27 28-If the Cheeseshop is down, you can also install Requests from one of the29-mirrors. `Crate.io <http://crate.io>`_ is one of them::28+If the Cheeseshop (a.k.a. PyPI) is down, you can also install Requests from one29+of the mirrors. `Crate.io <http://crate.io>`_ is one of them::30 31 $ pip install -i http://simple.crate.io/ requests32 33 23 unmodified linesmodified:docs/user/quickstart.rst+3 added-3 removed
115 unmodified lines116 117 The ``gzip`` and ``deflate`` transfer-encodings are automatically decoded for you.118 119 For example, to create an image from binary data returned by a request, you can120-use the following code:120+use the following code::121 122 >>> from PIL import Image123 >>> from StringIO import StringIO124 >>> i = Image.open(StringIO(r.content))47 unmodified lines172 More complicated POST requests173 ------------------------------174 175 Typically, you want to send some form-encoded data — much like an HTML form.176-To do this, simply pass a dictionary to the `data` argument. Your176+To do this, simply pass a dictionary to the ``data`` argument. Your177 dictionary of data will automatically be form-encoded when the request is made::178 179 >>> payload = {'key1': 'value1', 'key2': 'value2'}180 >>> r = requests.post("http://httpbin.org/post", data=payload)196 unmodified lines377 378 Timeouts379 --------380 381-You can tell requests to stop waiting for a response after a given number of381+You can tell Requests to stop waiting for a response after a given number of382 seconds with the ``timeout`` parameter::383 384 >>> requests.get('http://github.com', timeout=0.001)385 Traceback (most recent call last):31 unmodified linesmodified:docs/api.rst+1 added-1 removed
184 unmodified lines185 ~~~~~~~~~186 187 One key difference that has nothing to do with the API is a change in the188 license from the ISC_ license to the `Apache 2.0`_ license. The Apache 2.0189-license ensures that contributions to requests are also covered by the Apache189+license ensures that contributions to Requests are also covered by the Apache190 2.0 license.191 192 .. _ISC: http://opensource.org/licenses/ISC193 .. _Apache 2.0: http://opensource.org/licenses/Apache-2.01 unmodified linemodified:README.rst+1 added-1 removed
57 unmodified lines58 59 Installation60 ------------61 62-To install requests, simply:62+To install Requests, simply:63 64 .. code-block:: bash65 66 $ pip install requests26 unmodified lines