1 --- avahi-0.7/avahi-python/avahi-discover/avahi-discover.py.1 2020-01-21 12:34:52.073385689 +0000
2 +++ avahi-0.7/avahi-python/avahi-discover/avahi-discover.py 2020-01-21 12:42:39.126636069 +0000
4 self.new_service_type(interface, protocol, self.stype, domain)
6 def new_domain(self,interface, protocol, domain, flags):
7 - if self.zc_ifaces.has_key((interface,protocol)) == False:
8 + if ((interface,protocol) in self.zc_ifaces) == False:
9 ifn = self.get_interface_name(interface, protocol)
10 self.zc_ifaces[(interface,protocol)] = self.insert_row(self.treemodel, None, ifn,None,interface,protocol,None,domain)
11 - if self.zc_domains.has_key((interface,protocol,domain)) == False:
12 + if ((interface,protocol,domain) in self.zc_domains) == False:
13 self.zc_domains[(interface,protocol,domain)] = self.insert_row(self.treemodel, self.zc_ifaces[(interface,protocol)], domain,None,interface,protocol,None,domain)
15 self.browse_domain(interface, protocol, domain)