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
Andrew Svetlov
a191959849
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +02:00
Andrew Svetlov
5b89840d9c
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Antoine Pitrou
997adb5819
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:54:53 +02:00
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:53:29 +02:00
Philip Jenvey
fd0d3e5d25
more yield from
...
patch by Serhiy Storchaka
2012-10-01 15:34:31 -07:00
Ezio Melotti
ab9b661fdd
#15970 : merge with 3.2.
2012-09-19 08:25:01 +03:00
Ezio Melotti
c90111f9ab
#15970 : xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
2012-09-19 08:19:12 +03:00
Eli Bendersky
f90fc68db4
fix whitespace woes
2012-07-17 15:09:56 +03:00
Eli Bendersky
43cc5f29a8
Optimize tostringlist by taking the stream class outside the function. It's now 2x faster on short calls. Related to #1767933
2012-07-17 15:09:12 +03:00
Eli Bendersky
426e248feb
Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and add a test to make sure it keeps working
2012-07-17 05:45:11 +03:00
Eli Bendersky
00f402bfcb
Close #1767933 : Badly formed XML using etree and utf-16. Patch by Serhiy Storchaka, with some minor fixes by me
2012-07-15 06:02:22 +03:00