Passed
Push — develop ( 3c2cc7...ae040d )
by Dean
02:38
created

outer()   A

Complexity

Conditions 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
cc 1
dl 0
loc 7
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
1 1
import logging
2
3 1
log = logging.getLogger(__name__)
4
5
6 1
def bind(action, modes=None):
7 1
    def outer(func):
8 1
        func.binding = {
9
            'action': action,
10
            'modes': modes
11
        }
12
13 1
        return func
14
15
    return outer
16