issue #297: fix viewkeys use on 3.x.
This commit is contained in:
parent
124d8023a2
commit
6dd9e8984d
|
@ -40,7 +40,9 @@ import ansible_mitogen.connection
|
|||
import ansible_mitogen.process
|
||||
|
||||
|
||||
if sys.version_info > (2, 7):
|
||||
if sys.version_info > (3,):
|
||||
viewkeys = dict.keys
|
||||
elif sys.version_info > (2, 7):
|
||||
viewkeys = dict.viewkeys
|
||||
else:
|
||||
viewkeys = lambda dct: set(dct)
|
||||
|
|
Loading…
Reference in New Issue