I have a {} with a string -> list relationship, like:
'Something.Default.' : ['a=initiator', 'b=00:00:00']
'Something.Session.' : ['b=acceptor', 'c=7039']
I'd like to change keys to drop the last . 'Something.Default.' should become 'Something.Default'.
This is obviously wrong, but it illustrates what I am looking for
for key in my_dictionary:
key = key[:-1]
How can I iterate over each key and change it?