From: Hyunjee Kim
Date: Thu, 31 Jan 2019 01:48:41 +0000 (+0900)
Subject: Imported Upstream version 3.4.1
X-Git-Tag: upstream/4.3.0~24
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97cc09824ff0112e1b07bb0175783311c292f43e;p=platform%2Fupstream%2Fpython-lxml.git
Imported Upstream version 3.4.1
Change-Id: I3b5958f708ce8bc234f6db8313da83c332b30616
Signed-off-by: Hyunjee Kim
---
diff --git a/CHANGES.txt b/CHANGES.txt
index a6a841b..057375c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,21 @@
lxml changelog
==============
+3.4.1 (2014-11-20)
+==================
+
+Features added
+--------------
+
+* New ``htmlfile`` HTML generator to accompany the incremental ``xmlfile``
+ serialisation API. Patch by Burak Arslan.
+
+Bugs fixed
+----------
+
+* ``lxml.sax.ElementTreeContentHandler`` did not initialise its superclass.
+
+
3.4.0 (2014-09-10)
==================
diff --git a/PKG-INFO b/PKG-INFO
index 3dbe44b..908e33c 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: lxml
-Version: 3.4.0
+Version: 3.4.1
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: http://lxml.de/
Author: lxml dev team
Author-email: lxml-dev@lxml.de
License: UNKNOWN
-Download-URL: http://pypi.python.org/packages/source/l/lxml/lxml-3.4.0.tar.gz
+Download-URL: http://pypi.python.org/packages/source/l/lxml/lxml-3.4.1.tar.gz
Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
provides safe and convenient access to these libraries using the ElementTree
API.
@@ -37,56 +37,19 @@ Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libr
as soon as a maintenance branch has been established. Note that this
requires Cython to be installed at an appropriate version for the build.
- 3.4.0 (2014-09-10)
+ 3.4.1 (2014-11-20)
==================
Features added
--------------
- * ``xmlfile(buffered=False)`` disables output buffering and flushes the
- content after each API operation (starting/ending element blocks or writes).
- A new method ``xf.flush()`` can alternatively be used to explicitly flush
- the output.
-
- * ``lxml.html.document_fromstring`` has a new option ``ensure_head_body=True``
- which will add an empty head and/or body element to the result document if
- missing.
-
- * ``lxml.html.iterlinks`` now returns links inside meta refresh tags.
-
- * New ``XMLParser`` option ``collect_ids=False`` to disable ID hash table
- creation. This can substantially speed up parsing of documents with many
- different IDs that are not used.
-
- * The parser uses per-document hash tables for XML IDs. This reduces the
- load of the global parser dict and speeds up parsing for documents with
- many different IDs.
-
- * ``ElementTree.getelementpath(element)`` returns a structural ElementPath
- expression for the given element, which can be used for lookups later.
-
- * ``xmlfile()`` accepts a new argument ``close=True`` to close file(-like)
- objects after writing to them. Before, ``xmlfile()`` only closed the file
- if it had opened it internally.
-
- * Allow "bytearray" type for ASCII text input.
+ * New ``htmlfile`` HTML generator to accompany the incremental ``xmlfile``
+ serialisation API. Patch by Burak Arslan.
Bugs fixed
----------
- Other changes
- -------------
-
- * LP#400588: decoding errors have become hard errors even in recovery mode.
- Previously, they could lead to an internal tree representation in a mixed
- encoding state, which lead to very late errors or even silently incorrect
- behaviour during tree traversal or serialisation.
-
- * Requires Python 2.6, 2.7, 3.2 or later. No longer supports
- Python 2.4, 2.5 and 3.1, use lxml 3.3.x for those.
-
- * Requires libxml2 2.7.0 or later and libxslt 1.1.23 or later,
- use lxml 3.3.x with older versions.
+ * ``lxml.sax.ElementTreeContentHandler`` did not initialise its superclass.
diff --git a/doc/api.txt b/doc/api.txt
index 45978e0..4b0fdb7 100644
--- a/doc/api.txt
+++ b/doc/api.txt
@@ -38,9 +38,9 @@ lxml is extremely extensible through `XPath functions in Python`_, custom
6 Error logging
7 Serialisation
8 Incremental XML generation
- 8 CDATA
- 9 XInclude and ElementInclude
- 10 write_c14n on ElementTree
+ 9 CDATA
+ 10 XInclude and ElementInclude
+ 11 write_c14n on ElementTree
..
>>> from io import BytesIO
@@ -463,17 +463,18 @@ correct doctype format, including the name of the root node.
Incremental XML generation
--------------------------
-Since version 3.1, lxml has an API for incrementally generating XML
-using the ``with`` statement. It's main purpose is to freely and
-safely mix surrounding elements with pre-built in-memory trees, e.g.
-to write out large documents that consist mostly of repetitive
-subtrees (like database dumps). But it can be useful in many cases
-where memory consumption matters or where XML is naturally generated
-sequentially.
-
-The API can serialise to real files (also given as file paths) as
-well as file-like objects, e.g. ``io.BytesIO()``. Here is a simple
-example::
+Since version 3.1, lxml provides an ``xmlfile`` API for incrementally
+generating XML using the ``with`` statement. It's main purpose is to
+freely and safely mix surrounding elements with pre-built in-memory
+trees, e.g. to write out large documents that consist mostly of
+repetitive subtrees (like database dumps). But it can be useful in
+many cases where memory consumption matters or where XML is naturally
+generated in sequential steps. Since lxml 3.4.1, there is an equivalent
+context manager for HTML serialisation called ``htmlfile``.
+
+The API can serialise to real files (given as file path or file
+object), as well as file-like objects, e.g. ``io.BytesIO()``.
+Here is a simple example::
>>> f = BytesIO()
>>> with etree.xmlfile(f) as xf:
diff --git a/doc/html/FAQ.html b/doc/html/FAQ.html
index 45211ea..4c33a7b 100644
--- a/doc/html/FAQ.html
+++ b/doc/html/FAQ.html
@@ -10,7 +10,7 @@
-
lxml FAQ - Frequently Asked Questions
+
lxml FAQ - Frequently Asked Questions
Frequently asked questions on lxml. See also the notes on compatibility to
ElementTree.
@@ -935,7 +935,7 @@ map it to your namespace. See also the question above.
diff --git a/doc/html/api.html b/doc/html/api.html
index e625ff9..0582a50 100644
--- a/doc/html/api.html
+++ b/doc/html/api.html
@@ -8,7 +8,7 @@
-
APIs specific to lxml.etree
+
APIs specific to lxml.etree
lxml.etree tries to follow established APIs wherever possible. Sometimes,
however, the need to expose a feature in an easy way led to the invention of a
@@ -327,16 +327,17 @@ correct doctype format, including the name of the root node.
Incremental XML generation
-
Since version 3.1, lxml has an API for incrementally generating XML
-using the with statement. It's main purpose is to freely and
-safely mix surrounding elements with pre-built in-memory trees, e.g.
-to write out large documents that consist mostly of repetitive
-subtrees (like database dumps). But it can be useful in many cases
-where memory consumption matters or where XML is naturally generated
-sequentially.
-
The API can serialise to real files (also given as file paths) as
-well as file-like objects, e.g. io.BytesIO(). Here is a simple
-example:
+
Since version 3.1, lxml provides an xmlfile API for incrementally
+generating XML using the with statement. It's main purpose is to
+freely and safely mix surrounding elements with pre-built in-memory
+trees, e.g. to write out large documents that consist mostly of
+repetitive subtrees (like database dumps). But it can be useful in
+many cases where memory consumption matters or where XML is naturally
+generated in sequential steps. Since lxml 3.4.1, there is an equivalent
+context manager for HTML serialisation called htmlfile.
+
The API can serialise to real files (given as file path or file
+object), as well as file-like objects, e.g. io.BytesIO().
+Here is a simple example:
>>> f = BytesIO()
>>> with etree.xmlfile(f) as xf:
@@ -495,7 +496,7 @@ example:
diff --git a/doc/html/api/abc.ABCMeta-class.html b/doc/html/api/abc.ABCMeta-class.html
index c3e7642..bf4781d 100644
--- a/doc/html/api/abc.ABCMeta-class.html
+++ b/doc/html/api/abc.ABCMeta-class.html
@@ -426,7 +426,7 @@ even via super()).