From 1b30fa78a8b2f89f0f977e15046ddc0c081cab98 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 7 Nov 2012 19:14:53 -0300 Subject: added encoding to the log separator printing --- askbot/mail/parsing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/askbot/mail/parsing.py b/askbot/mail/parsing.py index 2dd8199f..6d664bcc 100644 --- a/askbot/mail/parsing.py +++ b/askbot/mail/parsing.py @@ -55,7 +55,8 @@ def strip_email_client_quote_separator(text): if regex.search(text): return regex.sub('', text) #did not find a quote separator!!! log it - sys.stderr.write('no quote separator: %s\n' % text) + log_message = 'no matching quote separator: %s\n' % text + sys.stdout.write(log_message.encode('utf-8')) return text def extract_reply_contents(text, reply_separator=None): -- cgit v1.2.3-1-g7c22