We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For those who would like to run this great script with eariler version of python < 3.10
As major new features of the 3.10 series, compared to 3.9 and earlier
PEP 604 – Allow writing union types as X | Y
You need to wrap '|' to a string, therefore little change in the codebase and you can get this up and running.
Replace
gofile-downloader/gofile-downloader.py
Line 47 in 3b8ccac
To
def __init__(self, url: str, password: "str | None" = None, max_workers: int = 5) -> None:
Line 56 in 3b8ccac
self._downloaddir: "str | None" = getenv("GF_DOWNLOADDIR")
Line 63 in 3b8ccac
self._password: "str | None" = sha256(password.encode()).hexdigest() if password else None
Line 171 in 3b8ccac
has_size: "str | None" = None
Line 260 in 3b8ccac
def _parseLinks(self, _id: str, token: str, password: "str | None" = None) -> None:
Lines 313 to 314 in 3b8ccac
url: "str | None" = None password: "str | None" = None
Tested on Python 3.9.18
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For those who would like to run this great script with eariler version of python < 3.10
As major new features of the 3.10 series, compared to 3.9 and earlier
PEP 604 – Allow writing union types as X | Y
You need to wrap '|' to a string, therefore little change in the codebase and you can get this up and running.
Change bellow lines:
Replace
gofile-downloader/gofile-downloader.py
Line 47 in 3b8ccac
To
Replace
gofile-downloader/gofile-downloader.py
Line 56 in 3b8ccac
To
Replace
gofile-downloader/gofile-downloader.py
Line 63 in 3b8ccac
To
Replace
gofile-downloader/gofile-downloader.py
Line 171 in 3b8ccac
To
Replace
gofile-downloader/gofile-downloader.py
Line 260 in 3b8ccac
To
Replace
gofile-downloader/gofile-downloader.py
Lines 313 to 314 in 3b8ccac
To
Tested on Python 3.9.18
The text was updated successfully, but these errors were encountered: