From: Moritz Warning Date: Sun, 13 Sep 2020 11:33:11 +0000 (+0200) Subject: misc/collect.py: add python version check X-Git-Tag: v3.0.0~10 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e0a6310cc9bace55c28031efecbfeab48c2ee64e;hp=37b9f2e35ba160c8260aae50854025f105dfb708;p=web%2Ffirmware-selector-openwrt-org.git misc/collect.py: add python version check make sure the program is only executed by Python >=3.5.0 --- diff --git a/misc/collect.py b/misc/collect.py index d3c1f5a..9608279 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -15,6 +15,8 @@ import re SUPPORTED_METADATA_VERSION = 1 +assert sys.version_info >= (3, 5), "Python version too old. Python >=3.5.0 needed." + # accepts {: } def merge_profiles(profiles, download_url):