Commit 1969eec1 authored by Stefan Behnel's avatar Stefan Behnel Committed by GitHub

Merge pull request #2755 from LordAro/patch-1

Don't try to use imap with python3
parents 28251032 34a17ea0
......@@ -21,7 +21,10 @@ except ImportError:
class _FakePool(object):
def map_async(self, func, args):
from itertools import imap
try:
from itertools import imap
except ImportError:
imap=map
for _ in imap(func, args):
pass
......
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