Tools: add Python 2 deprecation warning

This commit is contained in:
martin.gano
2020-11-04 23:32:40 +01:00
parent 66416d1a8b
commit f4ea2dcb74
12 changed files with 88 additions and 11 deletions

View File

@@ -249,6 +249,10 @@ def _erase_ota_partition(target, ota_id):
def main():
if sys.version_info[0] < 3:
print("WARNING: Support for Python 2 is deprecated and will be removed in future versions.")
elif sys.version_info[0] == 3 and sys.version_info[1] < 6:
print("WARNING: Python 3 versions older than 3.6 are not supported.")
global quiet
parser = argparse.ArgumentParser("ESP-IDF OTA Partitions Tool")