--- a/hgext/zeroconf/Zeroconf.py Mon Jan 04 21:54:46 2016 -0800
+++ b/hgext/zeroconf/Zeroconf.py Thu Dec 31 08:16:59 2015 +0000
@@ -150,7 +150,7 @@
_TYPE_TXT = 16
_TYPE_AAAA = 28
_TYPE_SRV = 33
-_TYPE_ANY = 255
+_TYPE_ANY = 255
# Mapping constants to names
@@ -522,7 +522,7 @@
def readString(self, len):
"""Reads a string of a given length from the packet"""
format = '!' + str(len) + 's'
- length = struct.calcsize(format)
+ length = struct.calcsize(format)
info = struct.unpack(format, self.data[self.offset:self.offset+length])
self.offset += length
return info[0]