[lxml-dev] Serialization to file does not report error
Stefan Behnel
stefan_ml at behnel.de
Thu Jan 29 07:33:54 CET 2009
Hi,
Frédéric Mantegazza wrote:
> I use the following code to serialize a tree to a file:
>
> tree.write(self.__fileName, pretty_print=True, xml_declaration=True)
>
> if the file pointed by self.__fileName is not writable (not owned by the
> current user), the call silently exits, but the file is not written.
Definitely works for me with newer releases.
Stefan
More information about the lxml-dev
mailing list