Port textproc/py-xml

Joerg Ruppe-Tanner joerg.ruppe.tanner at gmail.com
Sun Feb 15 16:19:53 UTC 2015


On 02/15/15 10:46, Kubilay Kocak wrote:
> On 15/02/2015 12:52 AM, Joerg Ruppe-Tanner wrote:
>> Hi Maintainer
>>
>> Here an Patch for textproc/py-xml
>>
>>
>> --- xml/xslt/Stylesheet.py.orig 2015-02-14 14:39:02.860452706 +0100
>> +++ xml/xslt/Stylesheet.py      2015-02-14 14:28:48.331501981 +0100
>> @@ -373,8 +373,8 @@
>>  
>>          #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:
>>
>>
>> For me it was useful
>>
>>
>> Kind Rregards
>>
>> Jörg
>>
>>
> Hi Jörg,
>
> May I ask what the patch addresses?
> Does it fix a bug? If so, what are/were the symptoms?
> Did you find this patch online? If so, what URL?
>
> --
> Regards,
>
> Koobs
>
>
Hi Koobs

The Problem was for me was that the potr doen't install .

portupgrde -p -v textproc/py-xml will fail.
I saw that Stylesheet.py will not compile
will the parser have problem with the for as statement.
So i have a look in tho other both patches in the files Directory.
I changed the for as stamen to for las prepare the patch make potupgrade -p -v an it  works.

Is this enough for You ?


Kind regards

Jörg


-- 


Joerg Ruppe-Tanner
Schuetzenweg 19
3294 Bueren an der Aare

email: joerg.ruppe.tanner at gmail.com
http://www.jrtnet.ch
Tel.:  (+41) 32 351 5840
Mob.:  (+41) 79 593 9569



More information about the freebsd-ports mailing list