cifrado r69 - trunk/package/cifrado
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: cifrado r69 - trunk/package/cifrado
- Date: Thu, 3 Apr 2008 18:26:58 +0100 (BST)
Author: bersace
Date: Thu Apr 3 18:26:58 2008
New Revision: 69
URL: http://svn.gnome.org/viewvc/cifrado?rev=69&view=rev
Log:
Corrige la sauvegarde (plus par url).
Modified:
trunk/package/cifrado/cifrado.py
Modified: trunk/package/cifrado/cifrado.py
==============================================================================
--- trunk/package/cifrado/cifrado.py (original)
+++ trunk/package/cifrado/cifrado.py Thu Apr 3 18:26:58 2008
@@ -21,6 +21,7 @@
from . import codeurs
from . import defs
+import urllib
from urllib import urlopen
COL_COD_NOM,COL_COD_CLASSE = range(2)
@@ -352,7 +353,7 @@
doc = Document()
doc.appendChild(self.jeu.createXML(doc))
- flux = urlopen(fichier, "w")
+ flux = open(urllib.unquote(fichier.replace("file://","")), "w")
flux.write(doc.toprettyxml())
flux.close()
self.register_recent()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]