From e0a6310cc9bace55c28031efecbfeab48c2ee64e Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sun, 13 Sep 2020 13:33:11 +0200 Subject: [PATCH] misc/collect.py: add python version check make sure the program is only executed by Python >=3.5.0 --- misc/collect.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.30.2