Revision 63092950 snf-pithos-app/pithos/api/util.py
b/snf-pithos-app/pithos/api/util.py | ||
---|---|---|
98 | 98 |
def rename_meta_key(d, old, new): |
99 | 99 |
if old not in d: |
100 | 100 |
return |
101 |
d[new] = d[old] |
|
102 |
del(d[old]) |
|
101 |
d[new] = d.pop(old) |
|
103 | 102 |
|
104 | 103 |
|
105 | 104 |
def printable_header_dict(d): |
Also available in: Unified diff