diff --git a/components/app_update/otatool.py b/components/app_update/otatool.py index 86c630f5af..7a087be16d 100755 --- a/components/app_update/otatool.py +++ b/components/app_update/otatool.py @@ -250,9 +250,9 @@ 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.") + 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: - 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 parser = argparse.ArgumentParser("ESP-IDF OTA Partitions Tool") diff --git a/components/spiffs/spiffsgen.py b/components/spiffs/spiffsgen.py index 11dc88aa14..a906362900 100755 --- a/components/spiffs/spiffsgen.py +++ b/components/spiffs/spiffsgen.py @@ -453,9 +453,9 @@ class SpiffsFS(): def main(): 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: - 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", formatter_class=argparse.ArgumentDefaultsHelpFormatter) diff --git a/tools/ci/build_examples.sh b/tools/ci/build_examples.sh index 163db24bce..a28481c6af 100755 --- a/tools/ci/build_examples.sh +++ b/tools/ci/build_examples.sh @@ -187,6 +187,8 @@ library/error\.o\ \|changes choice state\ \|Compiler version is not supported\ \|Toolchain version is not supported\ +\|Python 3 versions older than 3\.6 are not supported\.\ +\|Support for Python 2 is deprecated and will be removed in future versions\.\ " sort -u "${LOG_SUSPECTED}" | grep -v "${IGNORE_WARNS}" \ diff --git a/tools/ci/check_build_warnings.py b/tools/ci/check_build_warnings.py index 962451ad7d..d08600cabf 100755 --- a/tools/ci/check_build_warnings.py +++ b/tools/ci/check_build_warnings.py @@ -30,7 +30,8 @@ IGNORE_WARNS = [ r"changes choice state", r"crosstool_version_check\.cmake", 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.", ] ]