summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bazarr.py b/bazarr.py
index d0c983a0b..acab9e88a 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -2,6 +2,7 @@
from __future__ import absolute_import
from __future__ import print_function
+from six import PY3
import subprocess as sp
import time
import os
@@ -43,7 +44,10 @@ def start_bazarr():
print("Bazarr starting...")
try:
for line in iter(ep.stdout.readline, ''):
- sys.stdout.buffer.write(line)
+ if PY3:
+ sys.stdout.buffer.write(line)
+ else:
+ sys.stdout.write(line)
except KeyboardInterrupt:
pass