Commit 2c4982b5 by Marius Gedminas

Python 3: there's no itertools.imap

Because the builtin map() acts like an iterator already.
parent 6708d56a
...@@ -66,7 +66,12 @@ import grp ...@@ -66,7 +66,12 @@ import grp
import pwd import pwd
import platform import platform
import errno 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: try:
import json import json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment