summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-17 07:08:11 (GMT)
committerGitHub <noreply@github.com>2017-05-17 07:08:11 (GMT)
commit09b52471f39ba280d836b945d47719c697af0b45 (patch)
tree2d2c51ea7366f5641498e2cfbb6e983f85b80b55 /Misc
parent800e4b7ad6b6f86c17408429852dfb47493d366e (diff)
downloadcpython-09b52471f39ba280d836b945d47719c697af0b45.zip
cpython-09b52471f39ba280d836b945d47719c697af0b45.tar.gz
cpython-09b52471f39ba280d836b945d47719c697af0b45.tar.bz2
bpo-30365: Backport warnings and fix bugs in ElementTree. (#1581)
Running Python with the -3 option now emits deprecation warnings for getchildren() and getiterator() methods of the Element class in the xml.etree.cElementTree module and when pass the html argument to xml.etree.ElementTree.XMLParser(). Fixed a deprecation warning about the doctype() method of the xml.etree.ElementTree.XMLParser class. Now it is emitted only when define the doctype() method in the subclass of XMLParser. Fixed a bug in the test_bug_200708_close test method. An EchoTarget instance was incorrectly passed to XMLParser() as the html argument and silently ignored. Tests no longer failed when use the -m option for running only selected test methods. Checking warnings now is more specific, warnings are expected only when use deprecated features.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index c3fb3c8..dd6ec1b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -42,6 +42,15 @@ Extension Modules
Library
-------
+- bpo-30365: Running Python with the -3 option now emits deprecation warnings
+ for getchildren() and getiterator() methods of the Element class in the
+ xml.etree.cElementTree module and when pass the html argument to
+ xml.etree.ElementTree.XMLParser().
+
+- bpo-30365: Fixed a deprecation warning about the doctype() method of the
+ xml.etree.ElementTree.XMLParser class. Now it is emitted only when define
+ the doctype() method in the subclass of XMLParser.
+
- bpo-30329: imaplib now catchs the Windows socket WSAEINVAL error
(code 10022) on shutdown(SHUT_RDWR): An invalid operation was attempted.
This error occurs sometimes on SSL connections.