projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e4e8742
)
conf
author
Pierre
<ratinaud@univ-tlse2.fr>
Sun, 16 Dec 2012 17:38:42 +0000
(18:38 +0100)
committer
Pierre
<ratinaud@univ-tlse2.fr>
Sun, 16 Dec 2012 17:38:42 +0000
(18:38 +0100)
functions.py
patch
|
blob
|
history
diff --git
a/functions.py
b/functions.py
index
f609e65
..
8eef61d
100644
(file)
--- a/
functions.py
+++ b/
functions.py
@@
-162,19
+162,19
@@
class DoConf :
txt += '%s = %i\n' % (option, parametres[i][option])
elif isinstance(parametres[i][option], basestring) :
self.conf.set(section, option, parametres[i][option].encode('utf8'))
txt += '%s = %i\n' % (option, parametres[i][option])
elif isinstance(parametres[i][option], basestring) :
self.conf.set(section, option, parametres[i][option].encode('utf8'))
- txt += '%s = %s\n' % (option, parametres[i][option]
.encode('utf8')
)
+ txt += '%s = %s\n' % (option, parametres[i][option])
elif isinstance(parametres[i][option], wx.Colour) :
self.conf.set(section, option, str(parametres[i][option]))
elif isinstance(parametres[i][option], wx.Colour) :
self.conf.set(section, option, str(parametres[i][option]))
- txt += '%s = %s' % (option, str(parametres[i][option]))
+ txt += '%s = %s
\n
' % (option, str(parametres[i][option]))
elif option == 'analyses' :
pass
else :
self.conf.set(section, option, `parametres[i][option]`)
elif option == 'analyses' :
pass
else :
self.conf.set(section, option, `parametres[i][option]`)
- txt += '%s = %s' % (option, `parametres[i][option]`)
+ txt += '%s = %s
\n
' % (option, `parametres[i][option]`)
if outfile is None :
outfile = self.configfile
with codecs.open(outfile, 'w', 'utf8') as f :
if outfile is None :
outfile = self.configfile
with codecs.open(outfile, 'w', 'utf8') as f :
- f.write(txt)
+ f.write(txt
.encode('utf8')
)
#self.conf.write(f)
def totext(self, parametres) :
#self.conf.write(f)
def totext(self, parametres) :