Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

CLI doesn't work with Python >= 3.10 #1309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions twint/cli.py
Expand Up @@ -331,8 +331,8 @@ def main():


def run_as_command():
version = ".".join(str(v) for v in sys.version_info[:2])
if float(version) < 3.6:
version = sys.version_info[:2]
if version[0] < 3 or (version[0] == 3 and version[1] < 6):
print("[-] TWINT requires Python version 3.6+.")
sys.exit(0)

Expand Down