21718: Replace .decode method with str(bytes, "utf-8")
authorPeter Amstutz <peter.amstutz@curii.com>
Fri, 3 May 2024 14:38:19 +0000 (10:38 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 20 May 2024 18:40:20 +0000 (14:40 -0400)
commitc62e8c7eb9f864f6d3a8328af83572f0f05958da
treea71c353b29fe31c5bb6eccc96c4e63aae4f2d24e
parent7f8fa5edc5175ffda9fdfaa28081f799ae485ec0
21718: Replace .decode method with str(bytes, "utf-8")

This is because some bytes-like objects (such as memoryview) don't
have a "decode()" method. It appears that the preferred way to get a
decoded string is to simply call the constructor with the bytes-like
object and the desired encoding.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/cwl/arvados_cwl/arvdocker.py
sdk/cwl/arvados_cwl/arvworkflow.py
sdk/cwl/arvados_cwl/runner.py