Skip to content

Commit

Permalink
Update bufsize
Browse files Browse the repository at this point in the history
solving this warnings  subprocess.py:961: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  • Loading branch information
sinamajidian authored Dec 12, 2023
1 parent 342c10e commit ebd11ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion read2tree/wrappers/abstract_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def __call__(self, cmd=None, wait=False, **flags):

# spawn
self.process = Popen(shlex.split(self.cmd),
shell=False, stdout=PIPE, stderr=PIPE, bufsize=1, close_fds=POSIX)
shell=False, stdout=PIPE, stderr=PIPE, bufsize=64, close_fds=POSIX)
if self.verbose:
print('Launched {} with PID {}'.format(self.exe, self.process.pid))

Expand Down

0 comments on commit ebd11ad

Please sign in to comment.