From d76358ef2cc6e645f6be94c136369b7f27366ff7 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Mon, 9 Dec 2013 10:11:42 +0100 Subject: use base stdout for the output on i3bar --- py3status/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py3status/__init__.py b/py3status/__init__.py index bd8072a..68d491f 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -34,8 +34,8 @@ def print_line(line): """ Print given line to stdout (i3bar). """ - sys.stdout.write('{}\n'.format(line)) - sys.stdout.flush() + sys.__stdout__.write('{}\n'.format(line)) + sys.__stdout__.flush() class IOPoller: -- cgit v1.3