Conditions | 2 |
Total Lines | 8 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
6 | def _clean_item(d, key, strings, collections): |
||
7 | value = d.get(key, None) |
||
8 | if not value: |
||
9 | del_none = (value is None) |
||
10 | del_string = (strings and type_util.is_string(value)) |
||
11 | del_collection = (collections and type_util.is_collection(value)) |
||
12 | return any([del_none, del_string, del_collection]) |
||
13 | return False |
||
14 | |||
21 |