Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ New Features
Fixed Bugs
~~~~~~~~~~

- Include ``_validate_certificate`` in the lits of picked attributes on the
- Include ``_validate_certificate`` in the list of picked attributes on the
``AppEngineAdapter``.
- Fix backwards incompatibility in ``get_encodings_from_content``

Expand Down Expand Up @@ -231,7 +231,7 @@ on the project's page.
New Features
~~~~~~~~~~~~

- A naive implemenation of a thread pool is now included in the toolbelt. See
- A naive implementation of a thread pool is now included in the toolbelt. See
the docs in ``docs/threading.rst`` or on `Read The Docs
<https://toolbelt.readthedocs.io/>`_.

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Requests Toolbelt
This is just a collection of utilities for `python-requests`_, but don't
really belong in ``requests`` proper. The minimum tested requests version is
``2.1.0``. In reality, the toolbelt should work with ``2.0.1`` as well, but
some idiosyncracies prevent effective or sane testing on that version.
some idiosyncrasies prevent effective or sane testing on that version.

``pip install requests-toolbelt`` to get started!

Expand Down
4 changes: 2 additions & 2 deletions docs/adapters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ the user making a request with the URL that has the hostname in it. If,
however, the user needs to make a request with the IP address, they cannot
actually verify a certificate against the hostname they want to request.

To accomodate this very rare need, we've added
To accommodate this very rare need, we've added
:class:`~requests_toolbelt.adapters.host_header_ssl.HostHeaderSSLAdapter`.
Example usage:

Expand All @@ -155,7 +155,7 @@ SourceAddressAdapter
.. versionadded:: 0.3.0

The :class:`~requests_toolbelt.adapters.source.SourceAddressAdapter` allows a
user to specify a source address for their connnection.
user to specify a source address for their connection.

.. autoclass:: requests_toolbelt.adapters.source.SourceAddressAdapter

Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ How To Run The Tests

Run the tests in this project using `tox`_. Before you run the tests, ensure
you have installed tox either using your system package manager (e.g., apt,
yum, etc.), or your prefered python installer (e.g., pip).
yum, etc.), or your preferred python installer (e.g., pip).

Then run the tests on at least Python 2.7 and Python 3.x, e.g.,

Expand Down
2 changes: 1 addition & 1 deletion requests_toolbelt/streaming_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StreamingIterator(object):
support well. Additionally, you may want to set the content-length
yourself to avoid this but that will not work. The only way to preempt
requests using a chunked transfer-encoding and forcing it to stream the
uploads is to mimic a very specific interace. Instead of having to know
uploads is to mimic a very specific interface. Instead of having to know
these details you can instead just use this class. You simply provide the
size and iterator and pass the instance of StreamingIterator to requests
via the data parameter like so:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class TestSimplePrivateFunctions(object):

"""Excercise simple private functions in one logical place."""
"""Exercise simple private functions in one logical place."""

def test_coerce_to_bytes_skips_byte_strings(self):
"""Show that _coerce_to_bytes skips bytes input."""
Expand Down Expand Up @@ -150,7 +150,7 @@ def configure_httpresponse(self, headers=None, reason=b'', status=200,

class TestResponsePrivateFunctions(RequestResponseMixin):

"""Excercise private functions using responses."""
"""Exercise private functions using responses."""

def test_get_proxy_information_sans_proxy(self):
"""Show no information is returned when not using a proxy."""
Expand Down Expand Up @@ -333,7 +333,7 @@ def test_dump_response_data_with_unknown_http_version(self):

class TestResponsePublicFunctions(RequestResponseMixin):

"""Excercise public functions using responses."""
"""Exercise public functions using responses."""

def test_dump_response_fails_without_request(self):
"""Show that a response without a request raises a ValueError."""
Expand Down
2 changes: 1 addition & 1 deletion tests/threaded/test_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestSessionThread(unittest.TestCase):
def test_thread_initialization(self):
"""Test the way a SessionThread is initialized.

We want to ensure that we creat a thread with a name generated by the
We want to ensure that we create a thread with a name generated by the
uuid module, and that we pass the right method to use as a target.
"""
with mock.patch.object(uuid, 'uuid4', return_value='test'):
Expand Down