Mercurial > hg > orthanc-tests
changeset 542:3f8eebe85c37
fix for Python 3
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 19 Jun 2023 21:15:48 +0200 |
parents | d7f7b9af09ca |
children | 8722f7f95a38 |
files | Tests/Toolbox.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Toolbox.py Mon Jun 19 19:09:13 2023 +0200 +++ b/Tests/Toolbox.py Mon Jun 19 21:15:48 2023 +0200 @@ -431,8 +431,7 @@ with open(os.devnull, 'w') as devnull: data = subprocess.check_output([ FindExecutable('dcm2xml'), f.name ], stderr = devnull) - - return re.search('<data-set xfer="(.*?)"', data).group(1) + return re.search('<data-set xfer="(.*?)"', data.decode('utf-8')).group(1) def HasGdcmPlugin(orthanc):