Commit a457d3ca authored by minamotorin's avatar minamotorin Committed by GitHub

Fix bug with Python version3.10 or later

Reference: https://github.com/twintproject/twint/issues/1344#issue-1120511999
parent 67ca9414
...@@ -331,8 +331,7 @@ def main(): ...@@ -331,8 +331,7 @@ def main():
def run_as_command(): def run_as_command():
version = ".".join(str(v) for v in sys.version_info[:2]) if sys.version_info[:2] < (3,6):
if float(version) < 3.6:
print("[-] TWINT requires Python version 3.6+.") print("[-] TWINT requires Python version 3.6+.")
sys.exit(0) sys.exit(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment