rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / avahi / patches / 24-py3-avahi-discover.patch
blobfd1aea1246e9a22e1fe993c5b3e7a3e3f87d36b7
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
3 @@ -209,10 +209,10 @@
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)
14 if domain != "local":
15 self.browse_domain(interface, protocol, domain)