1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

error out if the version of python is old

This commit is contained in:
Viktor Stanchev 2016-01-03 17:42:26 -05:00
parent 1c58f8796e
commit fed7f7ab89

View File

@ -1,3 +1,9 @@
import sys
from distutils.version import LooseVersion
if LooseVersion(sys.version) < LooseVersion("3.4.0"):
print("Python 3.4.0 required")
sys.exit(1)
import re
import os
import argparse
@ -6,7 +12,6 @@ import configparser
import socket
import urllib.request as request
import urllib.error
import sys
import builtins
from collections import OrderedDict