29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
|
Subject: Convert iteritems() to items()
|
||
|
From: Radostin Stoyanov rstoyanov1@gmail.com Wed Oct 11 12:35:45 2017 +0100
|
||
|
Date: Fri Oct 20 11:49:14 2017 -0400:
|
||
|
Git: e2ad4b2fded8cb3ad23cd62b0c9d08767656ea83
|
||
|
|
||
|
In Python 2 iteritems() [1] returns an iterator over the dictionary and
|
||
|
items() [2] returns a list of pairs.
|
||
|
|
||
|
In Python 3 iteritems() does not exist and items() returns a view of
|
||
|
the dictionary's items.[3]
|
||
|
|
||
|
[1] https://docs.python.org/2/library/stdtypes.html#dict.iteritems
|
||
|
[2] https://docs.python.org/2/library/stdtypes.html#dict.items
|
||
|
[3] https://docs.python.org/3/library/stdtypes.html#dict.items
|
||
|
|
||
|
diff --git a/virtManager/create.py b/virtManager/create.py
|
||
|
index 1fbc65ef..8b4d75d5 100644
|
||
|
--- a/virtManager/create.py
|
||
|
+++ b/virtManager/create.py
|
||
|
@@ -2499,7 +2499,7 @@ class vmmCreate(vmmGObjectUI):
|
||
|
'passwd': self._get_config_oscontainer_source_password,
|
||
|
'insecure': self._get_config_oscontainer_isecure
|
||
|
}
|
||
|
- for key, getter in bootstrap_arg_keys.iteritems():
|
||
|
+ for key, getter in bootstrap_arg_keys.items():
|
||
|
bootstrap_args[key] = getter()
|
||
|
|
||
|
parentobj = self._customize_window or self
|