File: no_pyxml.patch

package info (click to toggle)
pypar2 1.4-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 388 kB
  • ctags: 111
  • sloc: python: 481; makefile: 118
file content (22 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (4)
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()