Revision d09bc886 kamaki/cli/utils.py
b/kamaki/cli/utils.py | ||
---|---|---|
498 | 498 |
if path.isfile(f): |
499 | 499 |
total_size += path.getsize(f) |
500 | 500 |
return total_size |
501 |
|
|
502 |
|
|
503 |
def remove_from_items(list_of_dicts, key_to_remove): |
|
504 |
for item in list_of_dicts: |
|
505 |
assert isinstance(item, dict), 'Item %s not a dict' % item |
|
506 |
item.pop(key_to_remove, None) |
Also available in: Unified diff