You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by hu...@apache.org on 2020/07/26 01:02:51 UTC

[incubator-heron] branch huijunwu/20200725 created (now ca1bae8)

This is an automated email from the ASF dual-hosted git repository.

huijun pushed a change to branch huijunwu/20200725
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git.


      at ca1bae8  fixshelldownload

This branch includes the following new commits:

     new ca1bae8  fixshelldownload

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-heron] 01/01: fixshelldownload

Posted by hu...@apache.org.
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 <hu...@gmail.com>
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)