Skip to content

Commit

Permalink
Merge branch 'master' into document-files-324
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph committed Dec 28, 2021
2 parents e888b92 + b877958 commit f2e268c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs/howto.rst
Expand Up @@ -145,10 +145,10 @@ Customizing the Twisted Agent

The main :py:mod:`treq` module has helper functions that automatically instantiate
an instance of :py:class:`treq.client.HTTPClient`. You can create an instance
of :py:class:`~treq.client.HTTPClient` directly in order to customize the
paramaters used to initialize it.
Internally, the :py:class:`~treq.client.HTTPClient` wraps an instance of
:py:class:`twisted.web.client.Agent`. When you create an instance of
of :py:class:`~treq.client.HTTPClient` directly in order to customize the
parameters used to initialize it.
Internally, the :py:class:`~treq.client.HTTPClient` wraps an instance of
:py:class:`twisted.web.client.Agent`. When you create an instance of
:py:class:`~treq.client.HTTPClient`, you must initialize it with an instance of
:py:class:`~twisted.web.client.Agent`. This allows you to customize its
behavior.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -83,7 +83,7 @@ Here is a list of `requests`_ features and their status in treq.
+----------------------------------+----------+----------+
| Connection Timeouts | yes | yes |
+----------------------------------+----------+----------+
| HTTP(S) Proxy Suport | yes | no |
| HTTP(S) Proxy Support | yes | no |
+----------------------------------+----------+----------+
| .netrc support | yes | no |
+----------------------------------+----------+----------+
Expand Down
5 changes: 0 additions & 5 deletions src/treq/client.py
Expand Up @@ -430,11 +430,6 @@ def _query_quote(v):
if not isinstance(v, bytes):
v = v.encode("utf-8")
q = quote_plus(v)
if isinstance(q, bytes):
# Python 2.7 returnes bytes when given bytes, but Python 3.x always
# returns str. Coverage disabled here to stop Coveralls complaining
# until we can drop Python 2.7 support.
q = q.decode("ascii") # pragma: no cover
return q


Expand Down
2 changes: 1 addition & 1 deletion src/treq/multipart.py
Expand Up @@ -155,7 +155,7 @@ def _writeLoop(self, consumer):

# It's also important to note that the boundary in the message
# is defined not only by "--boundary-value" but
# but with CRLF characers before it and after the line.
# but with CRLF characters before it and after the line.
# This is very important.
# proper boundary is "CRLF--boundary-valueCRLF"
consumer.write(
Expand Down

0 comments on commit f2e268c

Please sign in to comment.