This is an automated email from the ASF dual-hosted git repository. huijun pushed a commit to branch huijunwu/20200725 in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit ca1bae8c8037aafd98fb869295437528f090b18e Author: huijunwu <[email protected]> AuthorDate: Sun Jul 26 01:02:24 2020 +0000 fixshelldownload --- heron/shell/src/python/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heron/shell/src/python/utils.py b/heron/shell/src/python/utils.py index e5e1cd8..5d5f2f0 100644 --- a/heron/shell/src/python/utils.py +++ b/heron/shell/src/python/utils.py @@ -135,7 +135,7 @@ def read_chunk(filename, offset=-1, length=-1, escape_data=False): if length == -1: length = fstat.st_size - offset - with open(filename, "r") as fp: + with open(filename, "rb") as fp: fp.seek(offset) try: data = fp.read(length)
