[Lxml-checkins] r48314 - lxml/trunk

scoder at codespeak.net scoder at codespeak.net
Mon Nov 5 12:25:12 CET 2007


Author: scoder
Date: Mon Nov  5 12:25:11 2007
New Revision: 48314

Modified:
   lxml/trunk/selftest2.py
Log:
API usage fix

Modified: lxml/trunk/selftest2.py
==============================================================================
--- lxml/trunk/selftest2.py	(original)
+++ lxml/trunk/selftest2.py	Mon Nov  5 12:25:11 2007
@@ -19,7 +19,7 @@
     file = StringIO.StringIO()
     tree = ElementTree.ElementTree(elem)
     if encoding:
-        tree.write(file, encoding)
+        tree.write(file, encoding=encoding)
     else:
         tree.write(file)
     return file.getvalue().replace(' />', '/>')


More information about the lxml-checkins mailing list