Browse Source

Update Requests library 2.22.0 (aeda65b) → 2.22.0 (0b6c110).

pull/1200/head
JackDandy 6 years ago
parent
commit
dd0f8c64da
  1. 1
      CHANGES.md
  2. 4
      lib/requests/api.py
  3. 2
      lib/requests/auth.py

1
CHANGES.md

@ -7,6 +7,7 @@
* Update Hachoir library 2.0a6 (c102cc7) to 2.0a6 (5b9e05a)
* Update Js2Py 0.64 (efbfcca) to 0.64 (7858d1d)
* Update MsgPack 0.6.1 (737f08a) to 0.6.1 (05ff11d)
* Update Requests library 2.22.0 (aeda65b) to 2.22.0 (0b6c110)
[develop changelog]

4
lib/requests/api.py

@ -92,7 +92,9 @@ def head(url, **kwargs):
r"""Sends a HEAD request.
:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:param \*\*kwargs: Optional arguments that ``request`` takes. If
`allow_redirects` is not provided, it will be set to `False` (as
opposed to the default :meth:`request` behavior).
:return: :class:`Response <Response>` object
:rtype: requests.Response
"""

2
lib/requests/auth.py

@ -50,7 +50,7 @@ def _basic_auth_str(username, password):
"Non-string passwords will no longer be supported in Requests "
"3.0.0. Please convert the object you've passed in ({!r}) to "
"a string or bytes object in the near future to avoid "
"problems.".format(password),
"problems.".format(type(password)),
category=DeprecationWarning,
)
password = str(password)

Loading…
Cancel
Save