1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

build:wafsamba: Fix TypeError in read_submodule_status()

parts = l.split(" ")
            ^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-05-04 15:25:31 +12:00 committed by Andrew Bartlett
parent 1dbdeaa8d7
commit 5ac65fdf9a

View File

@ -43,6 +43,7 @@ def read_submodule_status(path, env=None):
cwd=path)
(stdout, stderr) = p.communicate(None)
for l in stdout.splitlines():
l = l.decode('utf-8')
l = l.rstrip()
status = l[0]
l = l[1:]