Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
stream.read() 不是异步方法
不能await
  • Loading branch information
911061873 authored Jan 5, 2024
1 parent b6aedb3 commit 5be9b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/alibabacloud_tea_util/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def read_as_bytes_async(stream) -> bytes:
elif isinstance(stream, str):
return bytes(stream, encoding='utf-8')
else:
return await stream.read()
return stream.read()

@staticmethod
async def read_as_string_async(stream) -> str:
Expand Down

0 comments on commit 5be9b9e

Please sign in to comment.