diff options
author | Louis Vézina <[email protected]> | 2019-09-23 16:21:24 -0400 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-09-23 16:21:24 -0400 |
commit | 2b2fd4e8d7d69db132be57a81ab3703147f9c5a5 (patch) | |
tree | e06c36e1e8ec31562323f6c49706330e4c3dcc78 /bazarr.py | |
parent | fb4b152c5bd58d65055255d730438af9295ad55b (diff) | |
download | bazarr-2b2fd4e8d7d69db132be57a81ab3703147f9c5a5.tar.gz bazarr-2b2fd4e8d7d69db132be57a81ab3703147f9c5a5.zip |
WIP
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |