1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
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()
|