From 974803bc6b6ac3a58115ce9a7795c6a50e5b7bea Mon Sep 17 00:00:00 2001 From: Torsten Kilias Date: Sun, 25 Feb 2024 23:47:53 +0100 Subject: [PATCH] Fix open mode in LocalFSMockBucketFSLocation.download_from_bucketfs_to_fileobj --- exasol_bucketfs_utils_python/localfs_mock_bucketfs_location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exasol_bucketfs_utils_python/localfs_mock_bucketfs_location.py b/exasol_bucketfs_utils_python/localfs_mock_bucketfs_location.py index d8b2687c..a7a19775 100644 --- a/exasol_bucketfs_utils_python/localfs_mock_bucketfs_location.py +++ b/exasol_bucketfs_utils_python/localfs_mock_bucketfs_location.py @@ -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: