From 0c918d8a22669f365330c3899130fd14f8ae2716 Mon Sep 17 00:00:00 2001 From: pierre Date: Sun, 10 Feb 2013 15:43:32 +0100 Subject: [PATCH] ... --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index 8f15198..733eff9 100644 --- a/functions.py +++ b/functions.py @@ -468,7 +468,7 @@ def ReadDicoAsDico(dicopath): dico = {} for line in content : if line[0] != u'': - line = line.replace(u'\n', '').replace('"', '').split('\t') + line = line.rstrip('\n\r').replace(u'\n', '').replace('"', '').split('\t') dico[line[0]] = line[1:] return dico -- 2.7.4