File: exceptions.py

package info (click to toggle)
python-cytoolz 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: python: 3,913; makefile: 34
file content (17 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import cytoolz

__all__ = ['merge', 'merge_with']


@cytoolz.curry
def merge(d, *dicts, **kwargs):
    return cytoolz.merge(d, *dicts, **kwargs)


@cytoolz.curry
def merge_with(func, d, *dicts, **kwargs):
    return cytoolz.merge_with(func, d, *dicts, **kwargs)


merge.__doc__ = cytoolz.merge.__doc__
merge_with.__doc__ = cytoolz.merge_with.__doc__