X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/28e50cc9480fdad416404542511a172cdc7253c7..8171328873751d5bfd47cd9da3f6ff9a66c84659:/services/fuse/arvados_fuse/unmount.py 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: