Skip to content

Commit 81a75cd

Browse files
authored
fix: update minio interface to be compatible with future versions (#1527)
* Pin minio version * Added explicit kwargs * Unpin minio
1 parent 097b017 commit 81a75cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/uproot/source/s3.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(
7373
region = parsed_query["region"]
7474

7575
client = Minio(
76-
endpoint,
76+
endpoint=endpoint,
7777
access_key=access_key,
7878
secret_key=secret_key,
7979
session_token=session_token,
@@ -83,6 +83,8 @@ def __init__(
8383
credentials=credentials,
8484
)
8585

86-
url = client.get_presigned_url("GET", bucket_name, object_name)
86+
url = client.get_presigned_url(
87+
method="GET", bucket_name=bucket_name, object_name=object_name
88+
)
8789

8890
super().__init__(url, **options)

0 commit comments

Comments
 (0)