소스 검색

Merge pull request #24 from papayalove/master

更新了io modules
drunkpig 1 년 전
부모
커밋
cb935f8a19
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