cifrado r58 - in trunk: . package/cifrado
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: cifrado r58 - in trunk: . package/cifrado
- Date: Wed, 2 Apr 2008 10:44:14 +0100 (BST)
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]