Commit f5304374 authored by Charles Pigott's avatar Charles Pigott Committed by Stefan Behnel

Don't try to use imap with python3

parent bcf92f45
...@@ -21,7 +21,10 @@ except ImportError: ...@@ -21,7 +21,10 @@ except ImportError:
class _FakePool(object): class _FakePool(object):
def map_async(self, func, args): def map_async(self, func, args):
from itertools import imap try:
from itertools import imap
except ImportError:
imap=map
for _ in imap(func, args): for _ in imap(func, args):
pass 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