Skip to content

Commit

Permalink
Update 'download_fileobj` method
Browse files Browse the repository at this point in the history
Support async file-like object in `download_fileobj`
  • Loading branch information
prodeveloper0 authored and terrycain committed Jan 4, 2023
1 parent ca796f0 commit d65be09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aioboto3/s3/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ async def download_fileobj(
except: # noqa: E722
pass

Fileobj.write(data)
o = Fileobj.write(data)
if inspect.isawaitable(o):
await o
await asyncio.sleep(0.0)


Expand Down

0 comments on commit d65be09

Please sign in to comment.