misc/collect.py: add python version check
authorMoritz Warning <moritzwarning@web.de>
Sun, 13 Sep 2020 11:33:11 +0000 (13:33 +0200)
committerMoritz Warning <moritzwarning@web.de>
Sun, 13 Sep 2020 12:38:45 +0000 (14:38 +0200)
make sure the program is only executed by Python >=3.5.0

misc/collect.py

index d3c1f5a5b5ece382cead24a1b106ebfedddcc85e..9608279da67bcccebd5728227d31b3a276097920 100755 (executable)
@@ -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 {<file-path>: <file-content>}
 def merge_profiles(profiles, download_url):