]> git.dujemihanovic.xyz Git - u-boot.git/commit
concurrencytest: Fix Python3 warning
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2020 03:34:58 +0000 (20:34 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:26:35 +0000 (12:26 -0700)
commitfe2400895ba0957b332926784daf21143f0f4835
tree63f8542be08a20ebc302868d401c36cfe365065c
parentbdf8fd76c0184373bbd31e6ee9a3a9430dcfc485
concurrencytest: Fix Python3 warning

This gives a warning in some situations:

  File "tools/dtoc/../concurrencytest/concurrencytest.py", line 95,
       in do_fork
    stream = os.fdopen(c2pread, 'rb', 1)
  File "/usr/lib/python3.8/os.py", line 1023, in fdopen
    return io.open(fd, *args, **kwargs)
RuntimeWarning: line buffering (buffering=1) isn't supported in binary
    mode, the default buffer size will be used

Fix this by dropping the line-buffer parameter.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/concurrencytest/concurrencytest.py