Skip to content

Commit

Permalink
Merge pull request #150 from npt/master
Browse files Browse the repository at this point in the history
Fix two DeprecationWarnings
  • Loading branch information
omarryhan authored Oct 1, 2024
2 parents e197afd + 443804c commit 0287489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions aiogoogle/sessions/aiohttp_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def fire_request(request):
headers=request.headers,
data=mpwriter,
timeout=request.timeout,
verify_ssl=request._verify_ssl,
ssl=request._verify_ssl,
)
# Else load file to memory and send
else:
Expand All @@ -139,7 +139,7 @@ async def fire_request(request):
data=read_file,
json=request.json,
timeout=request.timeout,
verify_ssl=request._verify_ssl,
ssl=request._verify_ssl,
)
# Else, if no file upload
else:
Expand All @@ -150,7 +150,7 @@ async def fire_request(request):
data=request.data,
json=request.json,
timeout=request.timeout,
verify_ssl=request._verify_ssl,
ssl=request._verify_ssl,
)

# ----------------- send sequence ------------------#
Expand Down
2 changes: 1 addition & 1 deletion tests/refresh_all_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ async def refresh_disc_docs_json():


if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(refresh_disc_docs_json())
asyncio.run(refresh_disc_docs_json())

0 comments on commit 0287489

Please sign in to comment.