Navigation Menu

Skip to content

Commit

Permalink
Misc. typos
Browse files Browse the repository at this point in the history
Found via `codespell -q 3`
  • Loading branch information
luzpaz committed Mar 3, 2018
1 parent f507c15 commit 716308d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CHANGES.rst
Expand Up @@ -109,7 +109,7 @@ dev (master)
* Fix some bugs that occur when modules incautiously patch the queue module.
(Pull #1061)

* Prevent retries from occuring on read timeouts for which the request method
* Prevent retries from occurring on read timeouts for which the request method
was not in the method whitelist. (Issue #1059)

* Changed the PyOpenSSL contrib module to lazily load idna to avoid
Expand Down Expand Up @@ -143,7 +143,7 @@ dev (master)
non-httplib underlying FPs. (Pull #990)

* Empty filenames in multipart headers are now emitted as such, rather than
being supressed. (Issue #1015)
being suppressed. (Issue #1015)

* Prefer user-supplied Host headers on chunked uploads. (Issue #1009)

Expand Down Expand Up @@ -504,7 +504,7 @@ dev (master)
* All errors during a retry-enabled request should be wrapped in
``urllib3.exceptions.MaxRetryError``, including timeout-related exceptions
which were previously exempt. Underlying error is accessible from the
``.reason`` propery. (Issue #326)
``.reason`` property. (Issue #326)

* ``urllib3.exceptions.ConnectionError`` renamed to
``urllib3.exceptions.ProtocolError``. (Issue #326)
Expand Down
2 changes: 1 addition & 1 deletion urllib3/contrib/securetransport.py
Expand Up @@ -88,7 +88,7 @@
SSL_WRITE_BLOCKSIZE = 16384

# This is our equivalent of util.ssl_.DEFAULT_CIPHERS, but expanded out to
# individual cipher suites. We need to do this becuase this is how
# individual cipher suites. We need to do this because this is how
# SecureTransport wants them.
CIPHER_SUITES = [
SecurityConst.TLS_AES_256_GCM_SHA384,
Expand Down
2 changes: 1 addition & 1 deletion urllib3/exceptions.py
Expand Up @@ -154,7 +154,7 @@ class ResponseError(HTTPError):


class SecurityWarning(HTTPWarning):
"Warned when perfoming security reducing actions"
"Warned when performing security reducing actions"
pass


Expand Down
2 changes: 1 addition & 1 deletion urllib3/fields.py
Expand Up @@ -121,7 +121,7 @@ def _render_parts(self, header_parts):
'Content-Disposition' fields.
:param header_parts:
A sequence of (k, v) typles or a :class:`dict` of (k, v) to format
A sequence of (k, v) tuples or a :class:`dict` of (k, v) to format
as `k1="v1"; k2="v2"; ...`.
"""
parts = []
Expand Down
2 changes: 1 addition & 1 deletion urllib3/poolmanager.py
Expand Up @@ -358,7 +358,7 @@ class ProxyManager(PoolManager):
The URL of the proxy to be used.
:param proxy_headers:
A dictionary contaning headers that will be sent to the proxy. In case
A dictionary containing headers that will be sent to the proxy. In case
of HTTP they are being sent with each request, while in the
HTTPS/CONNECT case they are sent only once. Could be used for proxy
authentication.
Expand Down
2 changes: 1 addition & 1 deletion urllib3/request.py
Expand Up @@ -117,7 +117,7 @@ def request_encode_body(self, method, url, fields=None, headers=None,
}
When uploading a file, providing a filename (the first parameter of the
tuple) is optional but recommended to best mimick behavior of browsers.
tuple) is optional but recommended to best mimic behavior of browsers.
Note that if ``headers`` are supplied, the 'Content-Type' header will
be overwritten because it depends on the dynamic random boundary string
Expand Down
2 changes: 1 addition & 1 deletion urllib3/util/ssl_.py
Expand Up @@ -183,7 +183,7 @@ def resolve_cert_reqs(candidate):
the wrap_socket function/method from the ssl module.
Defaults to :data:`ssl.CERT_NONE`.
If given a string it is assumed to be the name of the constant in the
:mod:`ssl` module or its abbrevation.
:mod:`ssl` module or its abbreviation.
(So you can specify `REQUIRED` instead of `CERT_REQUIRED`.
If it's neither `None` nor a string we assume it is already the numeric
constant which can directly be passed to wrap_socket.
Expand Down

0 comments on commit 716308d

Please sign in to comment.