Hello! I'm using Sceptre with Python 3.7 on OS X and it uses boto3 and botocore internally. I am getting loads of these deprecation warnings:
/Users/stig/.virtualenvs/sceptre/lib/python3.7/site-packages/botocore/parsers.py:434: DeprecationWarning: This method will be removed in future versions. Use 'list(elem)' or iteration over elem instead.
if value.getchildren():
Version information:
$ python --version
Python 3.7.0
>>> botocore.__version__
'1.11.2'
OS: macOS High Sierra (10.13.6)
$ sceptre --version
Sceptre, version 1.4.1
Looks like these warnings are new in 3.7 but the referenced features have been documented as deprecated for a while, see: https://bugs.python.org/issue29209
It seems like the current plan is completely remove these deprecated xml features in 3.9+
Specifically, xml.etree.cElementTree has been deprecated since 3.3 and the getchildren function has been deprecated since 2.7/3.2.
Thanks @DiegoPomares for the PR. I just merged it. You all should no longer be seeing that warning in the next release of botocore. Closing issue.
Most helpful comment
Thanks @DiegoPomares for the PR. I just merged it. You all should no longer be seeing that warning in the next release of
botocore. Closing issue.