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