##// END OF EJS Templates
zeroconf: fix an issue concatenating bytes and str...
Matt Harbison -
r48678:ad2c3707 stable
parent child Browse files
Show More
@@ -770,7 +770,7 b' class DNSOutgoing(object):'
770
770
771 def writeString(self, value, length):
771 def writeString(self, value, length):
772 """Writes a string to the packet"""
772 """Writes a string to the packet"""
773 format = b'!' + str(length) + b's'
773 format = '!' + str(length) + 's'
774 self.data.append(struct.pack(format, value))
774 self.data.append(struct.pack(format, value))
775 self.size += length
775 self.size += length
776
776
General Comments 0
You need to be logged in to leave comments. Login now