X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6a4098aa1207c276e2e6bf9a6128b30084ad4b1e..1a169a434494175b208d0d5055bb42333d9b64b9:/services/fuse/arvados_fuse/unmount.py?ds=sidebyside diff --git a/services/fuse/arvados_fuse/unmount.py b/services/fuse/arvados_fuse/unmount.py index 1f06d8c91c..12d047a8f3 100644 --- a/services/fuse/arvados_fuse/unmount.py +++ b/services/fuse/arvados_fuse/unmount.py @@ -6,6 +6,7 @@ import collections import errno import os import subprocess +import sys import time @@ -158,7 +159,7 @@ def unmount(path, subtype=None, timeout=10, recursive=False): if attempted: # Report buffered stderr from previous call to fusermount, # now that we know it didn't succeed. - sys.stderr.write(fusermount_output) + sys.stderr.buffer.write(fusermount_output) delay = 1 if deadline: