branch | stable |
changeset 43677 | 0f82b29f7494 |
parent 43077 | 687b865b95ad |
child 43735 | 7eb701e355bd |
--- a/hgext/zeroconf/Zeroconf.py Sun Nov 17 19:55:01 2019 +0100 +++ b/hgext/zeroconf/Zeroconf.py Wed Nov 13 22:40:32 2019 +0100 @@ -1191,7 +1191,11 @@ list.append(b'='.join((key, suffix))) for item in list: result = b''.join( - (result, struct.pack(b'!c', chr(len(item))), item) + ( + result, + struct.pack(b'!c', pycompat.bytechr(len(item))), + item, + ) ) self.text = result else: