python-benedict/benedict/core/rename.py

6 lines
110 B
Python
Raw Permalink Normal View History

from benedict.core.move import move
def rename(d, key, key_new):
move(d, key, key_new, overwrite=False)