Yury Selivanov
8987c9d219
Issue #26182 : Raise DeprecationWarning for improper use of async/await keywords
9 years ago
Raymond Hettinger
076366c2a5
Issue #17582 : xml.etree.ElementTree nows preserves whitespaces in attributes
(Patch by Duane Griffin. Reviewed and approved by Stefan Behnel.)
9 years ago
R David Murray
44b548dda8
#27364 : fix "incorrect" uses of escape character in the stdlib.
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
9 years ago
Martin Panter
204bf0b9ae
English spelling and grammar fixes
10 years ago
Martin Panter
29ce082c10
Clarify deprecation of ElementTree.XMLParser(html=...) parameter
10 years ago
Martin Panter
dcfebb32e2
Issue #26676 : Add missing XMLPullParser to ElementTree.__all__
10 years ago
Serhiy Storchaka
66c08d90f6
Issue #25902 : Fixed various refcount issues in ElementTree iteration.
10 years ago
Serhiy Storchaka
9ec5e25f26
Issue #25638 : Optimized ElementTree.iterparse(); it is now 2x faster.
ElementTree.XMLParser._setevents now accepts any objects with the append
method, not just a list.
10 years ago
Serhiy Storchaka
c472246d81
Issue #10131 : Fixed deep copying of minidom documents. Based on patch
by Marian Ganisin.
10 years ago
Serhiy Storchaka
e3d4ec4766
Issue #25688 : Fixed file leak in ElementTree.iterparse() raising an error.
10 years ago
Martin Panter
89f76d3f91
Issue #25047 : Respect case writing XML encoding declarations
This restores the ability to write encoding names in uppercase like "UTF-8",
which worked in Python 2.
10 years ago
Yury Selivanov
7544508f02
PEP 0492 -- Coroutines with async and await syntax. Issue #24017 .
11 years ago
Serhiy Storchaka
ab914780ba
Issue #24125 : Saved error's line and column numbers when an error is occured
during closing expatreader. Fixed a regression introduced in issue #23865 .
11 years ago
Serhiy Storchaka
7e7a3dba5f
Issue #23865 : close() methods in multiple modules now are idempotent and more
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
11 years ago
Serhiy Storchaka
778db289b5
Issue #10590 : xml.sax.parseString() now supports string argument.
11 years ago
Serhiy Storchaka
61de087f0f
Issue #2175 : SAX parsers now support a character stream of InputSource object.
11 years ago
Serhiy Storchaka
08448a1f4d
Issue #23326 : Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
11 years ago
Serhiy Storchaka
56a6d855e2
Removed duplicated words in in comments and docs.
11 years ago
Serhiy Storchaka
fc8e9b0e72
Issue #22915 : SAX parser now supports files opened with file descriptor or
bytes path.
11 years ago
Raymond Hettinger
0badfd5989
Minor code cleanup.
11 years ago
Raymond Hettinger
828d932a2c
PEP 479: Don't let StopIteration bubble out of calls to next() inside a generator.
11 years ago
Serhiy Storchaka
465e60e654
Issue #22033 : Reprs of most Python implemened classes now contain actual
class name instead of hardcoded one.
12 years ago
Raymond Hettinger
92a4055343
Issue #21774 : Fix incorrect variable in xml.dom.minidom
12 years ago
R David Murray
9077d24d7f
#12220 : improve minidom error when URI contains spaces.
Fix by 'amathew', test by Marek Stepniowski.
12 years ago
Serhiy Storchaka
91b0bc237c
Issue #20331 : Fixed possible FD leaks in various modules:
http.server, imghdr, mailcap, mimetypes, xml.etree.
12 years ago
R David Murray
410d320703
whatsnew: XMLPullParser, plus some doc updates.
I was confused by the text saying that read_events "iterated", since it
actually returns an iterator (that's what a generator does) that the
caller must then iterate. So I tidied up the language. I'm not sure
what the sentence "Events provided in a previous call to read_events()
will not be yielded again." is trying to convey, so I didn't try to fix that.
Also fixed a couple more news items.
12 years ago
Andrew Kuchling
98a0d063a1
Closes #12828 : add docstring text noting this is an internal-only module
12 years ago
Benjamin Peterson
72a98541f0
remove duplicate method ( closes #19127 )
12 years ago
Nick Coghlan
4cc2afa0ec
Close #18990 : remove root attribute from XMLPullParser
- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
returning a root element and instead direct users towards
read_events
- also added missing docstrings and clarified some details
related to exactly *when* events are consumed from the
internal queue
(Initial patch by Stefan Behnel)
12 years ago
Eli Bendersky
b586934f0e
Issue #17741 : Rename IncrementalParser and its methods.
The new names are hopefully more descriptive and consistent. If you feel you
don't agree with this change, *please* read issue 17741 first - there's a lot of
discussion in there.
13 years ago
Eli Bendersky
6206a7e4b0
Remove the obsolete XMLParser._start/_start_list duality.
XMLParser configures expat to report attributes in a list (ordered_attributes),
so only _start_list is needed. Rename it to _start and kill _start.
13 years ago
Antoine Pitrou
0acbcb5bbe
Issue #17741 : use composition, rather than inheritance, for xml.etree.iterparse's result class.
Patch by Stefan Behnel.
13 years ago
Ezio Melotti
b5bc353b88
#18741 : fix more typos. Patch by Févry Thibault.
13 years ago
Eli Bendersky
2acc525a97
Issue #17011 : Fix caching of xpath path when namespaces are present.
Thanks to Stefan Behnel for the report and proposed solution & test.
13 years ago
Christian Heimes
54ad7e39df
Issue #18347 : ElementTree's html serializer now preserves the case of closing tags.
13 years ago
Brett Cannon
cd171c8e92
Issue #18200 : Back out usage of ModuleNotFoundError (8d28d44f3a9a)
13 years ago
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
ModuleNotFoundError.
13 years ago
Eli Bendersky
a369923cab
Get rid of ugly code duplication for ElementTree.parse when the accelerator
is imported. Instead, ElementTree.parse can look for a special internal method
defined by the accelerator.
13 years ago
Eli Bendersky
8687245e27
normalize whitespace
13 years ago
Eli Bendersky
e6a951b83e
Cleanup even more dead code
13 years ago
Eli Bendersky
c4e98a6a9b
Cleanup more old ET library leftovers
13 years ago
Eli Bendersky
46955b2d30
Issue #17988 : remove unused alias for Element and rename the used one
Renaming to _Element_Py for clarity and moving it to a more logical location.
_ElementInterface OTOH is unused and is therefore removed.
Close #17988
13 years ago
Eli Bendersky
3a4fbd8241
_elementtree.XMLParser._setevents should support any sequence, not just tuples
Also clean up some code around this
13 years ago
Serhiy Storchaka
3eab6b363a
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
13 years ago
Georg Brandl
c502df4e3e
Issue #17915 : Fix interoperability of xml.sax with file objects returned by
codecs.open().
13 years ago
Eli Bendersky
c9f5ca232a
Remove superfluous try/except
13 years ago
Eli Bendersky
bf05df2396
Make license notices more consistent and remove old changelog.
Also remove unused macro.
13 years ago
Antoine Pitrou
5b235d0923
Issue #17741 : Add ElementTree.IncrementalParser, an event-driven parser for non-blocking applications.
13 years ago
Victor Stinner
765531d2d0
Issue #17516 : use comment syntax for comments, instead of multiline string
13 years ago
Eli Bendersky
981c3bde8d
Issue #11367 : fix documentation of some find* methods in ElementTree
13 years ago