Skip to content

Commit

Permalink
Make sure we curry excepts in toolz.curried for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Apr 17, 2016
1 parent 3b7c54a commit 4bf60b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toolz/curried/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def _nargs(f):


def _should_curry(f):
do_curry = frozenset((toolz.map, toolz.filter, toolz.sorted, toolz.reduce))
do_curry = frozenset((toolz.map, toolz.filter, toolz.sorted, toolz.reduce,
toolz.excepts))
return (callable(f) and _nargs(f) > 1 or f in do_curry)


Expand Down

0 comments on commit 4bf60b8

Please sign in to comment.