aboutsummaryrefslogtreecommitdiff
path: root/mammoth/lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth/lists.py')
-rw-r--r--mammoth/lists.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mammoth/lists.py b/mammoth/lists.py
index a1e188e..28889a9 100644
--- a/mammoth/lists.py
+++ b/mammoth/lists.py
@@ -13,3 +13,11 @@ def _collect(values, result):
_collect(value, result)
elif value is not None:
result.append(value)
+
+
+if sys.version_info[0] == 2:
+ map = map
+else:
+ import builtins
+ def map(*args, **kwargs):
+ return list(builtins.map(*args, **kwargs))