diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-09-04 03:11:59 -0700 |
---|---|---|
committer | Chris Dent <cdent@anticdent.org> | 2019-09-04 11:11:59 +0100 |
commit | a55bf98f51c57880e9c2cead4c01b5c23ce09839 (patch) | |
tree | b7241aad669b616c37d8ff6275dcb60be9eb8596 /paste/httpserver.py | |
parent | cdd2a9a58c59b8e599aa42b66b3c55ea47c7a4b7 (diff) | |
download | paste-git-a55bf98f51c57880e9c2cead4c01b5c23ce09839.tar.gz |
Make LimitedLengthFile file return empty bytes rather than empty string when it's done. (#32)
Diffstat (limited to 'paste/httpserver.py')
-rwxr-xr-x | paste/httpserver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpserver.py b/paste/httpserver.py index f91eb20..063c180 100755 --- a/paste/httpserver.py +++ b/paste/httpserver.py @@ -487,7 +487,7 @@ class LimitedLengthFile(object): length = min(length, left) # next two lines are hnecessary only if read(0) blocks if not left: - return '' + return b'' data = self.file.read(length) self._consumed += len(data) return data |