Skip to content

Commit

Permalink
Fix AioSession module location
Browse files Browse the repository at this point in the history
Since https://github.com/aio-libs/aiobotocore/releases/tag/1.4.0,
AioSession no longer exists in the top-level namespace.
  • Loading branch information
gadomski committed Aug 20, 2021
1 parent b6779f3 commit ce67a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s3fs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class S3FileSystem(AsyncFileSystem):
kwargs : other parameters for core session
session : aiobotocore AioSession object to be used for all connections.
This session will be used inplace of creating a new session inside S3FileSystem.
For example: aiobotocore.AioSession(profile='test_user')
For example: aiobotocore.session.AioSession(profile='test_user')
The following parameters are passed on to fsspec:
Expand Down Expand Up @@ -376,7 +376,7 @@ async def set_session(self, refresh=False, kwargs={}):

conf = AioConfig(**config_kwargs)
if self.session is None:
self.session = aiobotocore.AioSession(**self.kwargs)
self.session = aiobotocore.session.AioSession(**self.kwargs)

for parameters in (config_kwargs, self.kwargs, init_kwargs, client_kwargs):
for option in ("region_name", "endpoint_url"):
Expand Down

0 comments on commit ce67a72

Please sign in to comment.