cifrado r58 - in trunk: . package/cifrado



Author: bersace
Date: Wed Apr  2 10:44:13 2008
New Revision: 58
URL: http://svn.gnome.org/viewvc/cifrado?rev=58&view=rev

Log:
Utilisation de la nouvelle API xml.dom.minidom.toprettyxml().


Modified:
   trunk/ChangeLog
   trunk/package/cifrado/cifrado.py

Modified: trunk/package/cifrado/cifrado.py
==============================================================================
--- trunk/package/cifrado/cifrado.py	(original)
+++ trunk/package/cifrado/cifrado.py	Wed Apr  2 10:44:13 2008
@@ -12,7 +12,6 @@
 import  pango
 import  xdg.BaseDirectory       as xdgbd
 from    xml.dom.minidom import  Document,parse
-import  xml.dom.ext
 
 from    .       import jeu
 from    .       import message
@@ -338,7 +337,7 @@
         doc = Document()
         doc.appendChild(self.jeu.createXML(doc))
         flux = open(fichier, "w")
-        xml.dom.ext.PrettyPrint(doc, flux)
+        flux.write(doc.toprettyxml())
         flux.close()
         self.register_recent()
         print "Jeu ",self.jeu.nom," sauvà dans ",self.fichier



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]