Bump cheroot from 8.5.2 to 8.6.0 (#1603)

* Bump cheroot from 8.5.2 to 8.6.0

Bumps [cheroot](https://github.com/cherrypy/cheroot) from 8.5.2 to 8.6.0.
- [Release notes](https://github.com/cherrypy/cheroot/releases)
- [Changelog](https://github.com/cherrypy/cheroot/blob/master/CHANGES.rst)
- [Commits](https://github.com/cherrypy/cheroot/compare/v8.5.2...v8.6.0)

---
updated-dependencies:
- dependency-name: cheroot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update cheroot==8.6.0

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2022-01-04 13:20:50 -08:00 committed by GitHub
parent bb5ebe0fa5
commit 3689834051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 708 additions and 113 deletions

View file

@ -57,6 +57,10 @@ will run the server forever) or use invoking :func:`prepare()
And now for a trivial doctest to exercise the test suite
.. testsetup::
from cheroot.server import HTTPServer
>>> 'HTTPServer' in globals()
True
"""
@ -273,7 +277,8 @@ class SizeCheckWrapper:
def read(self, size=None):
"""Read a chunk from ``rfile`` buffer and return it.
:param int size: amount of data to read
:param size: amount of data to read
:type size: int
:returns: chunk from ``rfile``, limited by size if specified
:rtype: bytes
@ -286,7 +291,8 @@ class SizeCheckWrapper:
def readline(self, size=None):
"""Read a single line from ``rfile`` buffer and return it.
:param int size: minimum amount of data to read
:param size: minimum amount of data to read
:type size: int
:returns: one line from ``rfile``
:rtype: bytes
@ -312,7 +318,8 @@ class SizeCheckWrapper:
def readlines(self, sizehint=0):
"""Read all lines from ``rfile`` buffer and return them.
:param int sizehint: hint of minimum amount of data to read
:param sizehint: hint of minimum amount of data to read
:type sizehint: int
:returns: lines of bytes read from ``rfile``
:rtype: list[bytes]
@ -362,7 +369,8 @@ class KnownLengthRFile:
def read(self, size=None):
"""Read a chunk from ``rfile`` buffer and return it.
:param int size: amount of data to read
:param size: amount of data to read
:type size: int
:rtype: bytes
:returns: chunk from ``rfile``, limited by size if specified
@ -381,7 +389,8 @@ class KnownLengthRFile:
def readline(self, size=None):
"""Read a single line from ``rfile`` buffer and return it.
:param int size: minimum amount of data to read
:param size: minimum amount of data to read
:type size: int
:returns: one line from ``rfile``
:rtype: bytes
@ -400,7 +409,8 @@ class KnownLengthRFile:
def readlines(self, sizehint=0):
"""Read all lines from ``rfile`` buffer and return them.
:param int sizehint: hint of minimum amount of data to read
:param sizehint: hint of minimum amount of data to read
:type sizehint: int
:returns: lines of bytes read from ``rfile``
:rtype: list[bytes]
@ -501,7 +511,8 @@ class ChunkedRFile:
def read(self, size=None):
"""Read a chunk from ``rfile`` buffer and return it.
:param int size: amount of data to read
:param size: amount of data to read
:type size: int
:returns: chunk from ``rfile``, limited by size if specified
:rtype: bytes
@ -532,7 +543,8 @@ class ChunkedRFile:
def readline(self, size=None):
"""Read a single line from ``rfile`` buffer and return it.
:param int size: minimum amount of data to read
:param size: minimum amount of data to read
:type size: int
:returns: one line from ``rfile``
:rtype: bytes
@ -573,7 +585,8 @@ class ChunkedRFile:
def readlines(self, sizehint=0):
"""Read all lines from ``rfile`` buffer and return them.
:param int sizehint: hint of minimum amount of data to read
:param sizehint: hint of minimum amount of data to read
:type sizehint: int
:returns: lines of bytes read from ``rfile``
:rtype: list[bytes]
@ -1777,7 +1790,7 @@ class HTTPServer:
info = [(sock_type, socket.SOCK_STREAM, 0, '', bind_addr)]
for res in info:
af, socktype, proto, canonname, sa = res
af, socktype, proto, _canonname, sa = res
try:
self.bind(af, socktype, proto)
break
@ -1841,7 +1854,7 @@ class HTTPServer:
"""Context manager for running this server in a thread."""
self.prepare()
thread = threading.Thread(target=self.serve)
thread.setDaemon(True)
thread.daemon = True
thread.start()
try:
yield thread
@ -2118,7 +2131,7 @@ class HTTPServer:
host, port, socket.AF_UNSPEC,
socket.SOCK_STREAM,
):
af, socktype, proto, canonname, sa = res
af, socktype, proto, _canonname, _sa = res
s = None
try:
s = socket.socket(af, socktype, proto)