build:wafsamba: Fix TypeError in read_submodule_status()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 4 May 2023 03:25:31 +0000 (15:25 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 May 2023 01:59:32 +0000 (01:59 +0000)
    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>
buildtools/wafsamba/samba_git.py

index 09a204f1f4ff38af1d42bc65c23e08dfcc9b19ba..fe540ecccff68e49fc80ba52e21b615d21f7deb2 100644 (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:]