File pypar2-1.4-xmldomext.patch of Package pypar2

--- src/prefsManager.orig	2009-06-17 13:03:07.000000000 +0400
+++ src/prefsManager.py	2009-06-17 13:03:08.000000000 +0400
@@ -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 @@
         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()
 
 
openSUSE Build Service is sponsored by