just use raw bytes for small printer output

workspace
Brendan Howell 8 years ago
parent aa03d719c3
commit 2882562354

@ -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")

Loading…
Cancel
Save