Skip to content

Commit

Permalink
Removed aiofiles and moved back to classic open function
Browse files Browse the repository at this point in the history
  • Loading branch information
Itz-fork committed May 1, 2022
1 parent e34de80 commit 14065c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions gofile2/async_gofile2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import os
import aiohttp

from aiofiles import open
from .errors import is_valid_token, InvalidToken, JobFailed, ResponseError, InvalidPath


Expand Down Expand Up @@ -132,7 +131,7 @@ async def upload(self, file: str, folderId: str = "", description: str = "", pas
if expire:
req_dict["expire"] = expire

async with open(file, "rb") as go_file_d:
with open(file, "rb") as go_file_d:
req_dict["file"] = go_file_d
try:
upload_file = await session.post(
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
requests
aiohttp
aiofiles
aiohttp
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
else:
reques = [
'requests',
'aiohttp',
'aiofiles'
'aiohttp'
]

# Readme
Expand Down

0 comments on commit 14065c6

Please sign in to comment.