SOURCES: freevo-xmltv.py.patch (NEW) - new. Fixes working with ele...

Jakub Bogusz qboosh w pld-linux.org
Wto, 1 Maj 2007, 18:48:59 CEST


On Tue, May 01, 2007 at 06:43:46PM +0200, blekot wrote:
> +-    from cElementTree import ElementTree, Element, SubElement, tostring
> ++    from _elementtree import ElementTree, Element, SubElement, tostring

zgodnie z założeniami to raczej:
from xml.etree.cElementTree import ElementTree, Element, SubElement, tostring

> + except ImportError:
> +     from elementtree.ElementTree import ElementTree, Element, SubElement, tostring

a tu ew.
from xml.etree.ElementTree import ElementTree, Element, SubElement, tostring
(ale nie powinno być takiej potrzeby, jeśli zakładamy pythona 2.5)


-- 
Jakub Bogusz    http://qboosh.pl/


Więcej informacji o liście dyskusyjnej pld-devel-pl