git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dbdeaa
)
build:wafsamba: Fix TypeError in read_submodule_status()
author
Joseph Sutton
<josephsutton@catalyst.net.nz>
Thu, 4 May 2023 03:25:31 +0000
(15:25 +1200)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_git.py
b/buildtools/wafsamba/samba_git.py
index 09a204f1f4ff38af1d42bc65c23e08dfcc9b19ba..fe540ecccff68e49fc80ba52e21b615d21f7deb2 100644
(file)
--- a/
buildtools/wafsamba/samba_git.py
+++ b/
buildtools/wafsamba/samba_git.py
@@
-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:]