mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00:00
Python 3: there's no itertools.imap
Because the builtin map() acts like an iterator already.
This commit is contained in:
@@ -66,7 +66,12 @@ import grp
|
||||
import pwd
|
||||
import platform
|
||||
import errno
|
||||
from itertools import imap, repeat
|
||||
from itertools import repeat
|
||||
|
||||
try:
|
||||
from itertools import imap # Python 2
|
||||
except ImportError:
|
||||
imap = map # Python 3
|
||||
|
||||
try:
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user