aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2019-02-04 00:56:53 (GMT)
committerJouni Malinen <j@w1.fi>2019-02-04 10:26:35 (GMT)
commitb723b259264fc4329d41e3a10455066a030d66f5 (patch)
tree70647d79880ad5ec01461c212f190574cf18a6f5
parent4aa2336ed5520b4d21f728cb885775f8b4f249bf (diff)
downloadhostap-b723b259264fc4329d41e3a10455066a030d66f5.zip
hostap-b723b259264fc4329d41e3a10455066a030d66f5.tar.gz
hostap-b723b259264fc4329d41e3a10455066a030d66f5.tar.bz2
tests: Replace dict.has_key() with the in operator for python3
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
-rw-r--r--tests/hwsim/test_dbus.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_dbus.py b/tests/hwsim/test_dbus.py
index 0e690fa..1356fd0 100644
--- a/tests/hwsim/test_dbus.py
+++ b/tests/hwsim/test_dbus.py
@@ -475,7 +475,7 @@ def _test_dbus_get_set_wps(dev, apdev):
def propertiesChanged(self, properties):
logger.debug("PropertiesChanged: " + str(properties))
- if properties.has_key("ProcessCredentials"):
+ if "ProcessCredentials" in properties:
self.signal_received_deprecated = True
if self.sets_done and self.signal_received:
self.loop.quit()
@@ -485,7 +485,7 @@ def _test_dbus_get_set_wps(dev, apdev):
logger.debug("propertiesChanged2: interface_name=%s changed_properties=%s invalidated_properties=%s" % (interface_name, str(changed_properties), str(invalidated_properties)))
if interface_name != WPAS_DBUS_IFACE_WPS:
return
- if changed_properties.has_key("ProcessCredentials"):
+ if "ProcessCredentials" in changed_properties:
self.signal_received = True
if self.sets_done and self.signal_received_deprecated:
self.loop.quit()