This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
Example code to write large output in XML with Unicode and namespaces. | |
This code has been referenced in a lightning talk I gave at EuroPython 2012 | |
in Florence. | |
''' | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Python 2.x essentials. | |
This requires Python 2.5 or later. | |
''' | |
from __future__ import with_statement | |
import codecs | |
import os |
NewerOlder