mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
integral? that took me a while to figure out
integral: "In mathematics, an integral assigns numbers to functions in a way that describes displacement, area, volume, and other concepts that arise by combining infinitesimal data." integer: an int type
This commit is contained in:
parent
ff58e0c6da
commit
e3b0b1f91a
@ -18,7 +18,7 @@ class ChunkedReader(object):
|
||||
|
||||
def read(self, size):
|
||||
if not isinstance(size, int):
|
||||
raise TypeError("size must be an integral type")
|
||||
raise TypeError("size must be an integer type")
|
||||
if size < 0:
|
||||
raise ValueError("Size must be positive.")
|
||||
if size == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user