Skip to content

Commit

Permalink
Fix open mode in LocalFSMockBucketFSLocation.download_from_bucketfs_t…
Browse files Browse the repository at this point in the history
…o_fileobj
  • Loading branch information
tkilias committed Feb 25, 2024
1 parent ad7a52c commit 974803b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def generate_bucket_udf_path(
return path

def download_from_bucketfs_to_fileobj(self, bucket_file_path: str, fileobj: IO):
with open(self.get_complete_file_path_in_bucket(bucket_file_path)) as f:
with open(self.get_complete_file_path_in_bucket(bucket_file_path), "rb") as f:
fileobj.write(f.read())

def download_from_bucketfs_to_string(self, bucket_file_path: str) -> str:
Expand Down

0 comments on commit 974803b

Please sign in to comment.