issue #297: fix viewkeys use on 3.x.

This commit is contained in:
David Wilson 2018-07-10 20:20:04 +01:00
parent 124d8023a2
commit 6dd9e8984d
1 changed files with 3 additions and 1 deletions

View File

@ -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)