pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-lxml Update to 3.4.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d6197649a99
branches:  trunk
changeset: 639507:0d6197649a99
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Sep 14 17:51:15 2014 +0000

description:
Update to 3.4.0:

3.4.0 (2014-09-10)
==================

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.

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.

diffstat:

 textproc/py-lxml/Makefile |  4 ++--
 textproc/py-lxml/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 51a5110036ed -r 0d6197649a99 textproc/py-lxml/Makefile
--- a/textproc/py-lxml/Makefile Sun Sep 14 17:48:50 2014 +0000
+++ b/textproc/py-lxml/Makefile Sun Sep 14 17:51:15 2014 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2014/08/31 21:32:44 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2014/09/14 17:51:15 wiz Exp $
 
-DISTNAME=      lxml-3.3.6
+DISTNAME=      lxml-3.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc
 MASTER_SITES=  http://lxml.de/files/
diff -r 51a5110036ed -r 0d6197649a99 textproc/py-lxml/distinfo
--- a/textproc/py-lxml/distinfo Sun Sep 14 17:48:50 2014 +0000
+++ b/textproc/py-lxml/distinfo Sun Sep 14 17:51:15 2014 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2014/08/31 21:32:44 wiz Exp $
+$NetBSD: distinfo,v 1.19 2014/09/14 17:51:15 wiz Exp $
 
-SHA1 (lxml-3.3.6.tgz) = 9ed51835a5c97d34500055591209928980195b66
-RMD160 (lxml-3.3.6.tgz) = 3d85f18e52e3895c55b6d3cb40c3f73e21875223
-Size (lxml-3.3.6.tgz) = 3476093 bytes
+SHA1 (lxml-3.4.0.tgz) = df4ee0805fa85e3d019610ef1b9d31a024085fe1
+RMD160 (lxml-3.4.0.tgz) = 82af7db834a9738bd74a53429c36ca622decc172
+Size (lxml-3.4.0.tgz) = 3522134 bytes



Home | Main Index | Thread Index | Old Index