<s> """<STR_LIT>""" <EOL> import inspect <EOL> from . import exceptions <EOL> from . import operator <EOL> import toolz <EOL> def _nargs ( f ) : <EOL> try : <EOL> return len ( inspect . getargspec ( f ) . args ) <EOL> except TypeError : <EOL> return <NUM_LIT:0> <EOL> def _should_curry ( f ) : <EOL> do_curry = frozenset ( ( toolz . map , toolz . filter , toolz . sorted , toolz . reduce , <EOL> toolz . excepts ) ) <EOL> return ( callable ( f ) and _nargs ( f ) > <NUM_LIT:1> or f in do_curry ) <EOL> def _curry_namespace ( ns ) : <EOL> return dict ( <EOL> ( name , toolz . curry ( f ) if _should_curry ( f ) else f ) <EOL> for name , f in ns . items ( ) if '<STR_LIT>' not in name <EOL> ) <EOL> locals ( ) . update ( toolz . merge ( <EOL> _curry_namespace ( vars ( toolz ) ) , <EOL> _curry_namespace ( vars ( exceptions ) ) , <EOL> ) ) <EOL> del _nargs <EOL> del _should_curry <EOL> del exceptions <EOL> del toolz </s>
