summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authorLouis Vézina <[email protected]>2019-09-23 16:21:24 -0400
committerLouis Vézina <[email protected]>2019-09-23 16:21:24 -0400
commit2b2fd4e8d7d69db132be57a81ab3703147f9c5a5 (patch)
treee06c36e1e8ec31562323f6c49706330e4c3dcc78 /bazarr.py
parentfb4b152c5bd58d65055255d730438af9295ad55b (diff)
downloadbazarr-2b2fd4e8d7d69db132be57a81ab3703147f9c5a5.tar.gz
bazarr-2b2fd4e8d7d69db132be57a81ab3703147f9c5a5.zip
WIP
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