diff options
Diffstat (limited to 'mammoth/lists.py')
| -rw-r--r-- | mammoth/lists.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mammoth/lists.py b/mammoth/lists.py new file mode 100644 index 0000000..24fa7c4 --- /dev/null +++ b/mammoth/lists.py @@ -0,0 +1,11 @@ +import sys + + +__all__ = ["filter"] + +if sys.version_info[0] == 2: + filter = filter +else: + import builtins + def filter(*args, **kwargs): + return list(builtins.filter(*args, **kwargs)) |
