Index: pypar2-1.4/src/prefsManager.py
===================================================================
--- pypar2-1.4.orig/src/prefsManager.py
+++ pypar2-1.4/src/prefsManager.py
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
-import consts, os, typeToolBox, xml.dom.ext, xml.dom.minidom
+import consts, os, typeToolBox, xml.dom.minidom
 
 from gettext import gettext as _
 
@@ -69,7 +69,7 @@ def save() :
         root.appendChild(node)
     # Write the document to the disk
     file_object = open(consts.filePrefs, 'w')
-    xml.dom.ext.PrettyPrint(doc, file_object)
+    file_object.write(doc.toprettyxml())
     file_object.close()
 
 
