more-itertools: Error in more.py during pytest in Python 2.7
I received this error in version 6.0 (released just now in PyPi) when running pytest which depends on more-itertools. I am using python 2.7
def _collate(*iterables, key=lambda a: a, reverse=False):
^
SyntaxError: invalid syntax
Edited to add: For people finding this issue from Google, the issue is with Python 2.7. For a version more more-itertools
that works with that version of Python, pip install more_itertools==5.0.0
.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (4 by maintainers)
@MSeifert04 its th standard, i tested with pip as old as 9.x and it works
python_requires
is supported since Pip 9.0.0.