Zeroconf.py
changeset 361 331d698e1118
parent 223 1c0d3aaacf3d
child 379 71c441104cac
equal deleted inserted replaced
360:32339ad7d9ae 361:331d698e1118
   594             elif t == 0xC0:
   594             elif t == 0xC0:
   595                 if next < 0:
   595                 if next < 0:
   596                     next = off + 1
   596                     next = off + 1
   597                 off = ((len & 0x3F) << 8) | ord(self.data[off])
   597                 off = ((len & 0x3F) << 8) | ord(self.data[off])
   598                 if off >= first:
   598                 if off >= first:
   599                     raise "Bad domain name (circular) at " + str(off)
   599                     raise _("Bad domain name (circular) at ") + str(off)
   600                 first = off
   600                 first = off
   601             else:
   601             else:
   602                 raise "Bad domain name at " + str(off)
   602                 raise _("Bad domain name at ") + str(off)
   603 
   603 
   604         if next >= 0:
   604         if next >= 0:
   605             self.offset = next
   605             self.offset = next
   606         else:
   606         else:
   607             self.offset = off
   607             self.offset = off