Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id A315B63B955 for ; Tue, 7 Feb 2012 11:55:02 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 685F914A1D4; Tue, 7 Feb 2012 11:55:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 7A14E14A1D3 for ; Tue, 7 Feb 2012 11:54:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id fPaAQpvQiL1b for ; Tue, 7 Feb 2012 11:54:42 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id ECCB014A1D1 for ; Tue, 7 Feb 2012 11:54:41 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 4FF89175DD; Tue, 7 Feb 2012 11:54:41 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Tue, 7 Feb 2012 11:54:41 +0000 From: "OBATA Akio" Subject: CVS commit: pkgsrc/textproc/py-lxml To: pkgsrc-changes@NetBSD.org Reply-To: obache@netbsd.org X-Mailer: log_accum Message-Id: <20120207115441.4FF89175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: obache Date: Tue Feb 7 11:54:41 UTC 2012 Modified Files: pkgsrc/textproc/py-lxml: Makefile PLIST distinfo Log Message: Update py-lxml to 2.3.2. 2.3.2 (2011-11-11) ================== Features added -------------- * ``lxml.objectify.deannotate()`` has a new boolean option ``cleanup_namespaces`` to remove the objectify namespace declarations (and generally clean up the namespace declarations) after removing the type annotations. * ``lxml.objectify`` gained its own ``SubElement()`` function as a copy of ``etree.SubElement`` to avoid an otherwise redundant import of ``lxml.etree`` on the user side. Bugs fixed ---------- * Fixed the "descendant" bug in cssselect a second time (after a first fix in lxml 2.3.1). The previous change resulted in a serious performance regression for the XPath based evaluation of the translated expression. Note that this breaks the usage of some of the generated XPath expressions as XSLT location paths that previously worked in 2.3.1. * Fixed parsing of some selectors in cssselect. Whitespace after combinators ">", "+" and "~" is now correctly ignored. Previously is was parsed as a descendant combinator. For example, "div> .foo" was parsed the same as "div>* .foo" instead of "div>.foo". Other changes -------------- 2.3.1 (2011-09-25) ================== Features added -------------- * New option ``kill_tags`` in ``lxml.html.clean`` to remove specific tags and their content (i.e. their whole subtree). * ``pi.get()`` and ``pi.attrib`` on processing instructions to parse pseudo-attributes from the text content of processing instructions. * ``lxml.get_include()`` returns a list of include paths that can be used to compile external C code against lxml.etree. This is specifically required for statically linked lxml builds when code needs to compile against the exact same header file versions as lxml itself. * ``Resolver.resolve_file()`` takes an additional option ``close_file`` that configures if the file(-like) object will be closed after reading or not. By default, the file will be closed, as the user is not expected to keep a reference to it. Bugs fixed ---------- * HTML cleaning didn't remove 'data:' links. * The html5lib parser integration now uses the 'official' implementation in html5lib itself, which makes it work with newer releases of the library. * In ``lxml.sax``, ``endElementNS()`` could incorrectly reject a plain tag name when the corresponding start event inferred the same plain tag name to be in the default namespace. * When an open file-like object is passed into ``parse()`` or ``iterparse()``, the parser will no longer close it after use. This reverts a change in lxml 2.3 where all files would be closed. It is the users responsibility to properly close the file(-like) object, also in error cases. * Assertion error in lxml.html.cleaner when discarding top-level elements. * In lxml.cssselect, use the xpath 'A//B' (short for 'A/descendant-or-self::node()/B') instead of 'A/descendant::B' for the css descendant selector ('A B'). This makes a few edge cases like ``"div *:last-child"`` consistent with the selector behavior in WebKit and Firefox, and makes more css expressions valid location paths (for use in xsl:template match). * In lxml.html, non-selected ``