File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -706,14 +706,13 @@ def collect_output(self,
706
706
if ll and ll != "no_listing" :
707
707
get_listing (fs_access , files , (ll == "deep_listing" ))
708
708
else :
709
- with fs_access .open (rfile ["location" ], "rb" ) as f :
710
- contents = b""
711
- if binding .get ("loadContents" ) or compute_checksum :
712
- contents = content_limit_respected_read_bytes (f )
713
- if binding .get ("loadContents" ):
714
- files ["contents" ] = contents .decode ("utf-8" )
715
- if compute_checksum :
709
+ if binding .get ("loadContents" ):
710
+ with fs_access .open (rfile ["location" ], "rb" ) as f :
711
+ files ["contents" ] = content_limit_respected_read_bytes (f ).decode ("utf-8" )
712
+ if compute_checksum :
713
+ with fs_access .open (rfile ["location" ], "rb" ) as f :
716
714
checksum = hashlib .sha1 ()
715
+ contents = f .read (1024 * 1024 )
717
716
while contents != b"" :
718
717
checksum .update (contents )
719
718
contents = f .read (1024 * 1024 )
You can’t perform that action at this time.
0 commit comments