mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/ci_py2_warnings_fix' into 'master'
ci: Python 2 warnings fix See merge request espressif/esp-idf!11615
This commit is contained in:
@@ -250,9 +250,9 @@ def _erase_ota_partition(target, ota_id):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
print("WARNING: Support for Python 2 is deprecated and will be removed in future versions.")
|
print("WARNING: Support for Python 2 is deprecated and will be removed in future versions.", file=sys.stderr)
|
||||||
elif sys.version_info[0] == 3 and sys.version_info[1] < 6:
|
elif sys.version_info[0] == 3 and sys.version_info[1] < 6:
|
||||||
print("WARNING: Python 3 versions older than 3.6 are not supported.")
|
print("WARNING: Python 3 versions older than 3.6 are not supported.", file=sys.stderr)
|
||||||
global quiet
|
global quiet
|
||||||
|
|
||||||
parser = argparse.ArgumentParser("ESP-IDF OTA Partitions Tool")
|
parser = argparse.ArgumentParser("ESP-IDF OTA Partitions Tool")
|
||||||
|
@@ -453,9 +453,9 @@ class SpiffsFS():
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
print("WARNING: Support for Python 2 is deprecated and will be removed in future versions.")
|
print("WARNING: Support for Python 2 is deprecated and will be removed in future versions.", file=sys.stderr)
|
||||||
elif sys.version_info[0] == 3 and sys.version_info[1] < 6:
|
elif sys.version_info[0] == 3 and sys.version_info[1] < 6:
|
||||||
print("WARNING: Python 3 versions older than 3.6 are not supported.")
|
print("WARNING: Python 3 versions older than 3.6 are not supported.", file=sys.stderr)
|
||||||
parser = argparse.ArgumentParser(description="SPIFFS Image Generator",
|
parser = argparse.ArgumentParser(description="SPIFFS Image Generator",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||||
|
|
||||||
|
@@ -30,7 +30,8 @@ IGNORE_WARNS = [
|
|||||||
r"changes choice state",
|
r"changes choice state",
|
||||||
r"crosstool_version_check\.cmake",
|
r"crosstool_version_check\.cmake",
|
||||||
r"CryptographyDeprecationWarning",
|
r"CryptographyDeprecationWarning",
|
||||||
r"Python 3 versions older than 3.6 are not supported."
|
r"Python 3 versions older than 3.6 are not supported.",
|
||||||
|
r"Support for Python 2 is deprecated and will be removed in future versions.",
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user