diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-11-07 19:14:53 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-11-07 19:14:53 -0300 |
commit | 1b30fa78a8b2f89f0f977e15046ddc0c081cab98 (patch) | |
tree | a908f1c82bbe9e9496f9e59231a151ead4437d10 | |
parent | c318671e0a5e2973e6d53bcac65a44375a006f3e (diff) | |
download | askbot-1b30fa78a8b2f89f0f977e15046ddc0c081cab98.tar.gz askbot-1b30fa78a8b2f89f0f977e15046ddc0c081cab98.tar.bz2 askbot-1b30fa78a8b2f89f0f977e15046ddc0c081cab98.zip |
added encoding to the log separator printing
-rw-r--r-- | askbot/mail/parsing.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |