hgext/zeroconf/Zeroconf.py
branchstable
changeset 47864 ad2c37075f46
parent 44956 ba7eda4fcf8e
child 48875 6000f5b25c9b
--- a/hgext/zeroconf/Zeroconf.py	Tue Aug 24 23:42:35 2021 +0200
+++ b/hgext/zeroconf/Zeroconf.py	Wed Aug 18 14:58:42 2021 -0400
@@ -770,7 +770,7 @@
 
     def writeString(self, value, length):
         """Writes a string to the packet"""
-        format = b'!' + str(length) + b's'
+        format = '!' + str(length) + 's'
         self.data.append(struct.pack(format, value))
         self.size += length