lxml/lxml — pull request #79 by SimonSapin (2012-11-21 23:41:54+00:00)
Title: Incremental serializer: fix namespaces

* Reject invalid prefixes (only None, unicode or ASCII-only bytes are valid)
* Pick a prefix for namespaces without one
* Write prefix declarations with attributes.