浏览代码

io modules

liukaiwen 1 年之前
父节点
当前提交
664f9cd6ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      magic_pdf/io/S3ReaderWriter.py

+ 1 - 1
magic_pdf/io/S3ReaderWriter.py

@@ -11,7 +11,7 @@ MODE_BIN = "binary"
 
 
 class S3ReaderWriter(AbsReaderWriter):
-    def __init__(self, ak: str, sk: str, endpoint_url: str, addressing_style: str, parent_path: str):
+    def __init__(self, ak: str, sk: str, endpoint_url: str, addressing_style: str = 'auto', parent_path: str = ''):
         self.client = self._get_client(ak, sk, endpoint_url, addressing_style)
         self.path = parent_path