Stéphane Wirtel
41af942e57
bpo-30615: Fix the leak reference in Modules/_elementtree.c ( #2129 )
2017-06-12 15:30:48 +02:00
Serhiy Storchaka
09b52471f3
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.
2017-05-17 10:08:11 +03:00
Serhiy Storchaka
5e79321742
bpo-30074: Fix compile warnings of _PySlice_Unpack and convert missed ( #1154 )
...
PySlice_GetIndicesEx in _ctypes.c.
2017-04-15 20:11:12 +03:00
Serhiy Storchaka
e41390aca5
bpo-27867: Expand the PySlice_GetIndicesEx macro. ( #1023 ) ( #1046 )
...
(cherry picked from commit b879fe8 )
2017-04-08 11:48:57 +03:00
Serhiy Storchaka
9c2c42c221
bpo-27863: Fixed multiple crashes in ElementTree. ( #765 ) ( #903 ) ( #963 )
...
(cherry picked from commit 576def096e )
(cherry picked from commit a6b4e19022 )
2017-04-02 20:37:03 +03:00
Xiang Zhang
9c0408d9b6
bpo-29876: fix DECREF for NULL value in subelement() (GH-760)
2017-03-22 14:32:52 +08:00
Xiang Zhang
827c78326a
bpo-29873: fix INCREF for possible NULL value in element_getattr() (GH-757)
2017-03-22 12:25:51 +08:00
Serhiy Storchaka
1451874e6b
Backed out changeset 78bf34b6a713
2016-12-28 09:23:17 +02:00
Serhiy Storchaka
85add4783e
Issue #28871 : Fixed a crash when deallocate deep ElementTree.
...
Fixed running MiscTests in test_xml_etree_c.
2016-12-21 12:55:28 +02:00
Benjamin Peterson
d7324bcf29
when you enter repr, you must leave, too ( #25455 )
2016-12-03 11:30:04 -08:00
Serhiy Storchaka
1f7586eeb9
Issue #25455 : Fixed a crash in repr of cElementTree.Element with recursive tag.
2016-06-12 10:06:32 +03:00
Martin Panter
6a8163a928
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation and code comments.
2016-04-15 02:14:19 +00:00
Serhiy Storchaka
763a61ca95
Issue #26200 : Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
...
in places where Py_DECREF was used.
2016-04-10 18:05:12 +03:00
Serhiy Storchaka
bc62af1bbe
Issue #22570 : Renamed Py_SETREF to Py_XSETREF.
2016-04-06 09:51:18 +03:00
Serhiy Storchaka
2e6c829681
Issue #20440 : More use of Py_SETREF.
...
This patch is manually crafted and contains changes that couldn't be handled
automatically.
2015-12-27 15:41:58 +02:00
Serhiy Storchaka
20a003bea4
Issue #24103 : Fixed possible use after free in ElementTree.iterparse().
2015-12-24 11:51:24 +02:00
Serhiy Storchaka
33ea29772d
Fixed possible leaks in ElementTree parser.
2015-12-09 19:44:30 +02:00
Serhiy Storchaka
45cf0b7f3e
Issue25814: Propagate all errors from custom XML parser handlers
...
in ElementTree.iterparse().
2015-12-06 23:51:53 +02:00
Serhiy Storchaka
b5b76c370b
Fixed compilation error introduced in 745fd5550bc0.
2015-11-26 11:21:47 +02:00
Serhiy Storchaka
c4c64be1b8
Issue #19687 : Fixed possible integer overflows in ElementTree.
...
Based on patch by Christian Heimes.
2015-11-25 20:12:58 +02:00
Serhiy Storchaka
a0ae9ff006
Issue #19687 : Fixed memory leak on failed Element slice assignment.
2015-11-22 12:31:11 +02:00
Serhiy Storchaka
25598f35d7
Issue #24091 : Fixed various crashes in corner cases in cElementTree.
2015-05-18 18:28:57 +03:00
Serhiy Storchaka
98a9722e4a
Issue #20437 : Fixed 43 potential bugs when deleting objects references.
2014-02-09 13:14:04 +02:00
Eli Bendersky
71142c4e86
Fix indentation from previous commit
2013-11-28 06:37:25 -08:00
Eli Bendersky
f933e081dd
Issue #19815 : Fix segfault when parsing empty namespace declaration.
...
Based on patches by Christian Heimes and Vajrasky Kok
2013-11-28 06:25:45 -08:00