84
85unifiable_n = {}
86
87for k in unifiable.keys(): 88 unifiable_n[name2cp(k)] = unifiable[k]
89
90### End Entity Nonsense ###
Consider iterating the dictionary directly instead of calling .keys()
.
Using for key in dictionary
would always iterate the dictionary keys.
sounds = {"cow": "moo", "dog": "bark"}
for key in sounds.keys():
print(key)
sounds = {"cow": "moo", "dog": "bark"}
for key in sounds:
print(key)