From 9bcd3bea546435e7c9184c71ab26719642451b56 Mon Sep 17 00:00:00 2001 From: ArshdeepSandhu Date: Tue, 22 Feb 2022 17:14:04 +0100 Subject: [PATCH] Fixing TWINT requires Python version 3.6+ commit to fix issues with python versions following since 3.10 --- twint/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/twint/cli.py b/twint/cli.py index f463d687..98000994 100644 --- a/twint/cli.py +++ b/twint/cli.py @@ -331,8 +331,7 @@ def main(): def run_as_command(): - version = ".".join(str(v) for v in sys.version_info[:2]) - if float(version) < 3.6: + if(sys.version_info.major < 3 or (sys.version_info.major == 3 and sys.version_info.minor < 6)): print("[-] TWINT requires Python version 3.6+.") sys.exit(0)