Revision f23a5cdb kamaki/cli/utils.py
b/kamaki/cli/utils.py | ||
---|---|---|
55 | 55 |
|
56 | 56 |
|
57 | 57 |
def pretty_keys(d, delim='_', recurcive=False): |
58 |
"""Transform keys of a dict from the form |
|
59 |
str1_str2_..._strN to the form strN |
|
60 |
where _ is the delimeter |
|
58 |
"""<term>delim<term> to <term> <term> transformation |
|
61 | 59 |
""" |
62 | 60 |
new_d = {} |
63 | 61 |
for key, val in d.items(): |
Also available in: Unified diff