Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2015 17:27:58 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r379100 - in head/textproc/py-xml: . files
Message-ID:  <201502161727.t1GHRwf2040321@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Mon Feb 16 17:27:58 2015
New Revision: 379100
URL: https://svnweb.freebsd.org/changeset/ports/379100
QAT: https://qat.redports.org/buildarchive/r379100/

Log:
  textprox/py-xml: 'as' is reserved keyword in newer versions of Python
  
  PR:		197710
  Submitted by:	Joerg Ruppe-Tanner <joerg.ruppe.tanner@gmail.com>

Added:
  head/textproc/py-xml/files/patch-xml_xslt_Stylesheet.py   (contents, props changed)
Modified:
  head/textproc/py-xml/Makefile

Modified: head/textproc/py-xml/Makefile
==============================================================================
--- head/textproc/py-xml/Makefile	Mon Feb 16 16:00:05 2015	(r379099)
+++ head/textproc/py-xml/Makefile	Mon Feb 16 17:27:58 2015	(r379100)
@@ -3,7 +3,7 @@
 
 PORTNAME=	xml
 PORTVERSION=	0.8.4
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	textproc python
 MASTER_SITES=	SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Added: head/textproc/py-xml/files/patch-xml_xslt_Stylesheet.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-xml/files/patch-xml_xslt_Stylesheet.py	Mon Feb 16 17:27:58 2015	(r379100)
@@ -0,0 +1,13 @@
+--- xml/xslt/Stylesheet.py.orig	2015-02-16 16:52:28 UTC
++++ xml/xslt/Stylesheet.py
+@@ -373,8 +373,8 @@ class StylesheetElement(XsltElement):
+ 
+         #Attribute sets
+         attribute_sets = filter(lambda x: x.nodeType == Node.ELEMENT_NODE and (x.namespaceURI, x.localName) == (XSL_NAMESPACE, 'attribute-set'), self.childNodes)
+-        for as in attribute_sets:
+-            as.instantiate(context, processor)
++        for las in attribute_sets:
++            las.instantiate(context, processor)
+         overridden_params = {}
+         for k in topLevelParams.keys():
+             if type(k) != types.TupleType:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502161727.t1GHRwf2040321>