From 2882562354e8b906056548b473bcb33e6827f714 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Wed, 3 May 2017 22:12:59 +0200 Subject: [PATCH] just use raw bytes for small printer output --- screenless/bureau/publicrelations/publicrelations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 30a1145..44cf3ee 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -96,7 +96,8 @@ class PublicRelations(Bureau): for t in tweets: prn.set(text_type="U") username = t["user"]["name"].encode("cp437", "ignore") - prn.text(username + "\r\n") + prn._raw(username) + prn.text("\r\n") prn.set(text_type="NORMAL") t_wrapped = textwrap.fill(t["text"], width=48) + "\r\n" t_enc = t_wrapped.encode("cp437", "ignore")