benedict.core.remove.remove()   A
last analyzed

Complexity

Conditions 3

Size

Total Lines 6
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 3
nop 3
1
from benedict.utils import type_util
2
3
4
def remove(d, keys, *args):
5
    if type_util.is_string(keys):
6
        keys = [keys]
7
    keys += args
8
    for key in keys:
9
        d.pop(key, None)
10