Skip to content

Commit 990ceeb

Browse files
author
Martin Durant
committed
back compat for s3 attribute of files
1 parent 6f600c1 commit 990ceeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

s3fs/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ def __init__(self, s3, path, mode='rb', block_size=5 * 2 ** 20, acl="",
918918
self.s3_additional_kwargs = s3_additional_kwargs or {}
919919
super().__init__(s3, path, mode, block_size, autocommit=autocommit,
920920
cache_type=cache_type)
921+
self.s3 = self.fs # compatibility
921922
if self.writable():
922923
if block_size < 5 * 2 ** 20:
923924
raise ValueError('Block size must be >=5MB')

0 commit comments

Comments
 (0)