From f6e6d1cea58fe1e16aee1c8630367a890df82cea Mon Sep 17 00:00:00 2001
From: pierre <ratinaud@univ-tlse2.fr>
Date: Sun, 14 Sep 2014 15:54:09 +0200
Subject: [PATCH] ...

---
 functions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions.py b/functions.py
index 884e62f..d697f16 100644
--- a/functions.py
+++ b/functions.py
@@ -51,7 +51,7 @@ class TGen :
         if path is None :
             path = self.path
         with open(path, 'w') as f :
-            f.write('\n'.join(['\t'.join([val] + self.tgen[val]) for val in self.tgen]))
+            f.write('\n'.join(['\t'.join([val] + self.tgen[val]) for val in self.tgen]).encode(self.encoding))
     
     def writetable(self, pathout, tgens, totocc):
         etoiles = totocc.keys()
-- 
2.7.4