Andrew Kuchling
c6a140f330
Merge from 3.3
2013-11-12 10:26:15 -05:00
Andrew Kuchling
98a0d063a1
Closes #12828 : add docstring text noting this is an internal-only module
2013-11-12 10:25:15 -05:00
Benjamin Peterson
84c1205043
merge 3.3 ( #19127 )
2013-09-29 11:15:49 -04:00
Benjamin Peterson
72a98541f0
remove duplicate method ( closes #19127 )
2013-09-29 11:15:31 -04:00
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)
2013-09-28 23:50:35 +10:00
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.
2013-08-30 05:51:20 -07:00
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.
2013-08-25 18:58:18 -07:00
Antoine Pitrou
0acbcb5bbe
Issue #17741 : use composition, rather than inheritance, for xml.etree.iterparse's result class.
...
Patch by Stefan Behnel.
2013-08-23 23:04:30 +02:00
Ezio Melotti
e0c69161bc
#18741 : merge with 3.3.
2013-08-17 16:13:22 +03:00
Ezio Melotti
b5bc353b88
#18741 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:11:40 +03:00
Eli Bendersky
b9b6ce6f2c
Merge fix for Issue #17011 from 3.3
2013-08-03 17:48:41 -07:00
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.
2013-08-03 17:47:47 -07:00
Christian Heimes
6597aa16b6
Issue #18347 : ElementTree's html serializer now preserves the case of closing tags.
2013-07-05 01:40:52 +02:00
Christian Heimes
54ad7e39df
Issue #18347 : ElementTree's html serializer now preserves the case of closing tags.
2013-07-05 01:39:49 +02:00
Brett Cannon
cd171c8e92
Issue #18200 : Back out usage of ModuleNotFoundError (8d28d44f3a9a)
2013-07-04 17:43:24 -04:00
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
...
ModuleNotFoundError.
2013-06-13 20:57:26 -04:00
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.
2013-05-19 18:47:23 -07:00
Eli Bendersky
8687245e27
normalize whitespace
2013-05-19 09:27:13 -07:00
Eli Bendersky
e6a951b83e
Cleanup even more dead code
2013-05-19 09:25:52 -07:00
Eli Bendersky
c4e98a6a9b
Cleanup more old ET library leftovers
2013-05-19 09:24:43 -07:00
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
2013-05-19 09:20:50 -07:00
Eli Bendersky
3a4fbd8241
_elementtree.XMLParser._setevents should support any sequence, not just tuples
...
Also clean up some code around this
2013-05-19 09:01:49 -07:00
Serhiy Storchaka
3068aed92b
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:59 +03:00
Serhiy Storchaka
3eab6b363a
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:16 +03:00
Georg Brandl
2665f21866
merge with 3.3
2013-05-12 12:08:05 +02:00
Georg Brandl
64949fa20e
merge with 3.2
2013-05-12 11:52:22 +02:00
Georg Brandl
c502df4e3e
Issue #17915 : Fix interoperability of xml.sax with file objects returned by
...
codecs.open().
2013-05-12 11:41:12 +02:00
Eli Bendersky
c9f5ca232a
Remove superfluous try/except
2013-04-20 09:11:37 -07:00
Eli Bendersky
bf05df2396
Make license notices more consistent and remove old changelog.
...
Also remove unused macro.
2013-04-20 05:44:01 -07:00
Antoine Pitrou
5b235d0923
Issue #17741 : Add ElementTree.IncrementalParser, an event-driven parser for non-blocking applications.
2013-04-18 19:37:06 +02:00
Victor Stinner
765531d2d0
Issue #17516 : use comment syntax for comments, instead of multiline string
2013-03-26 01:11:54 +01:00
Eli Bendersky
72cdb5c39e
Issue #11367 : fix documentation of some find* methods in ElementTree
2013-03-12 06:04:33 -07:00
Eli Bendersky
7343cb0790
Issue #11367 : fix documentation of some find* methods in ElementTree
2013-03-12 06:01:22 -07:00
Eli Bendersky
84fae785ce
Issue #16954 : Add docstrings for ElementTree
...
Based on patch by David Lam
2013-03-09 07:12:48 -08:00
Giampaolo Rodola'
2f50aaf2ff
modernize some modules' code by using with statement around open()
2013-02-12 02:04:27 +01:00
Serhiy Storchaka
02c2076bd5
Issue #1470548 : XMLGenerator now works with binary output streams.
2013-02-10 14:34:53 +02:00
Serhiy Storchaka
9fef188c9e
Issue #1470548 : XMLGenerator now works with binary output streams.
2013-02-10 14:31:07 +02:00
Serhiy Storchaka
88efc52d74
Issue #1470548 : XMLGenerator now works with binary output streams.
2013-02-10 14:29:52 +02:00
Eli Bendersky
c4d5e08e3f
Issue #9708 : Fix support for iterparse(parser=...) argument per documentation.
...
When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.
2013-01-24 07:15:46 -08:00
Eli Bendersky
aaa9780fe1
Issue #9708 : Fix support for iterparse(parser=...) argument per documentation.
...
When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.
2013-01-24 07:15:19 -08:00
Eli Bendersky
5c6198b3fd
Issue #12323 : Strengthen error checking of the position XPath selectors
2013-01-24 06:29:26 -08:00
Ezio Melotti
605a95ae44
#11379 : merge with 3.3.
2013-01-22 22:50:06 +02:00
Ezio Melotti
564e4d8dc9
#11379 : merge with 3.2.
2013-01-22 22:49:46 +02:00
Ezio Melotti
da4b5b82a3
#11379 : rephrase minidom documentation to use the term "minimal" instead of "lightweight". Patch by Éric Araujo.
2013-01-22 22:47:57 +02:00
Serhiy Storchaka
9e189f0a28
Cleanup the docs ElementTree a bit.
2013-01-13 22:24:27 +02:00
Serhiy Storchaka
f1b045f417
Describe the default_namespace parameter of ElemetTree.write.
2013-01-13 22:04:43 +02:00
Serhiy Storchaka
03530b980e
Describe the default_namespace parameter of ElemetTree.write.
2013-01-13 21:58:04 +02:00
Eli Bendersky
e9af827fb1
Cleanup the docs ElementTree a bit and describe the default_namespace parameter. In the code, replace the old outdated Doxygen-ish comment above ElementTree.write by a proper docstring.
2013-01-13 06:27:51 -08:00
Eli Bendersky
a9a2ef5550
Close #14377 : Add a new parameter to ElementTree.write and some module-level
...
serialization functions - short_empty_elements. It controls how elements
without contents are emitted.
Patch by Serhiy Storchaka. Feature initially proposed by Ariel Poliak.
2013-01-13 06:04:43 -08:00
Andrew Svetlov
f7a17b48d7
Replace IOError with OSError ( #16715 )
2012-12-25 16:47:37 +02:00