summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-09-20 14:31:21 +0200
committerMartin Trigaux <mat@odoo.com>2017-09-20 16:13:37 +0200
commit289b6046d63bb8d0c43fcd86f80945a5066357cf (patch)
tree84ae102bc4c57f2cdabe249ab61c1c2e7fa2ef0c
parent08316eb4557534d1aaf551e3b520aeca5ceb4c0a (diff)
[FIX] tools: py3k export translations
Previous code was converting the text to bytes which fails below AttributeError: 'int' object has no attribute 'isalpha'
-rw-r--r--odoo/tools/translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py
index 308504be156..dddd7c936cb 100644
--- a/odoo/tools/translate.py
+++ b/odoo/tools/translate.py
@@ -730,7 +730,7 @@ def trans_parse_rml(de):
def _push(callback, term, source_line):
""" Sanity check before pushing translation terms """
- term = (term or "").strip().encode('utf8')
+ term = (term or "").strip()
# Avoid non-char tokens like ':' '...' '.00' etc.
if len(term) > 8 or any(x.isalpha() for x in term):
callback(term, source_line)