summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_message.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-05-26 17:34:04 +0200
committerChristophe Simonis <chs@odoo.com>2015-05-28 14:27:38 +0200
commitfe2b5f35a40ca8df662130608b0f89427a196362 (patch)
tree0c7773f0599f3b1e6dbb869104fad0b04869b269 /addons/mail/models/mail_message.py
parentd4d8a2eae31e7a6a45029b84603e055300e3be36 (diff)
parentbf1e99964cdbc374f8a0c4cec1b338bf7c7c2930 (diff)
[MERGE] forward port of branch saas-6 up to bf1e999
Diffstat (limited to 'addons/mail/models/mail_message.py')
-rw-r--r--addons/mail/models/mail_message.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/models/mail_message.py b/addons/mail/models/mail_message.py
index bb010372025..7e191f9517d 100644
--- a/addons/mail/models/mail_message.py
+++ b/addons/mail/models/mail_message.py
@@ -17,7 +17,9 @@ def decode(text):
# TDE proposal: move to tools ?
if text:
text = decode_header(text.replace('\r', ''))
- return ''.join([tools.ustr(x[0], x[1]) for x in text])
+ # The joining space will not be needed as of Python 3.3
+ # See https://hg.python.org/cpython/rev/8c03fe231877
+ return ' '.join([tools.ustr(x[0], x[1]) for x in text])
class Message(models.Model):