Skip to content

Commit

Permalink
Merge pull request #121 from davesque/toolz
Browse files Browse the repository at this point in the history
Update toolz module to import more names
  • Loading branch information
davesque committed Aug 17, 2018
2 parents 9d5ebbd + c96c4c6 commit eb3d229
Showing 1 changed file with 148 additions and 2 deletions.
150 changes: 148 additions & 2 deletions eth_utils/toolz.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,156 @@
try:
from cytoolz import (
curry,
accumulate,
assoc,
assoc_in,
comp,
compatibility,
complement,
compose,
concat,
concatv,
cons,
count,
countby,
curried,
curry,
dicttoolz,
diff,
dissoc,
do,
drop,
excepts,
filter,
first,
flip,
frequencies,
functoolz,
get,
get_in,
groupby,
identity,
interleave,
interpose,
isdistinct,
isiterable,
itemfilter,
itemmap,
iterate,
itertoolz,
join,
juxt,
keyfilter,
keymap,
last,
map,
mapcat,
memoize,
merge,
merge_sorted,
merge_with,
nth,
partial,
partition,
partition_all,
partitionby,
peek,
pipe,
pluck,
random_sample,
recipes,
reduce,
reduceby,
remove,
second,
sliding_window,
sorted,
tail,
take,
take_nth,
thread_first,
thread_last,
topk,
unique,
update_in,
utils,
valfilter,
valmap,
)
except ImportError:
from toolz import ( # noqa: F401
curry,
accumulate,
assoc,
assoc_in,
comp,
compatibility,
complement,
compose,
concat,
concatv,
cons,
count,
countby,
curried,
curry,
dicttoolz,
diff,
dissoc,
do,
drop,
excepts,
filter,
first,
flip,
frequencies,
functoolz,
get,
get_in,
groupby,
identity,
interleave,
interpose,
isdistinct,
isiterable,
itemfilter,
itemmap,
iterate,
itertoolz,
join,
juxt,
keyfilter,
keymap,
last,
map,
mapcat,
memoize,
merge,
merge_sorted,
merge_with,
nth,
partial,
partition,
partition_all,
partitionby,
peek,
pipe,
pluck,
random_sample,
recipes,
reduce,
reduceby,
remove,
second,
sliding_window,
sorted,
tail,
take,
take_nth,
thread_first,
thread_last,
topk,
unique,
update_in,
utils,
valfilter,
valmap,
)

0 comments on commit eb3d229

Please sign in to comment.