X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=e93f34ed930c2f8679baa50204ca6568f6bc786f;hp=a26731b9405ee12015ab8bfd75d8c0e989c69818;hb=9420002b21cada767db876f972f6083fc542ccd2;hpb=4dc1de2e438378f357bcbb2fd8cf0075e0bdcd55 diff --git a/functions.py b/functions.py index a26731b..e93f34e 100644 --- a/functions.py +++ b/functions.py @@ -253,8 +253,8 @@ class DoConf : txt += '%s = %s\n' % (option, `parametres[i][option]`) if outfile is None : outfile = self.configfile - with codecs.open(outfile, 'w', 'utf8') as f : - f.write(txt) + with open(outfile, 'w') as f : + f.write(txt.encode('utf8')) #self.conf.write(f) def totext(self, parametres) :