test,examples: fix scripts to avoid 'has_key' for Python 3
'has_key' on Dictionaries is removed from Python3 in favor of 'in'. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
@@ -58,7 +58,7 @@ for c_path in settings.ListConnections():
|
||||
continue
|
||||
|
||||
# add IPv4 setting if it doesn't yet exist
|
||||
if not c_settings.has_key('ipv4'):
|
||||
if 'ipv4' not in c_settings:
|
||||
c_settings['ipv4'] = {}
|
||||
|
||||
# set the method and change properties
|
||||
|
Reference in New Issue
Block a user