Hi all,
I have a file with the following structure:
system.action.webMessage=An error has happened during web access. system.action.okMessage=Everything is ok. core.alert.inform=Error number 5512.
I need a script to compare the keys in 2 files with this structure. I was working in a script to convert the file into a dictionary and use the dictionary structure to compare de keys (strings before '=') in both files and tells me with value from which key is equal.
file = open('system.keys','r')
lines = []
for i in file:
lines.append(i.split('='))
dic = {}
for k, v in lines:
dic[k] = v
But I'm receiving the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: too many values to unpack
Any one have some clue or help? :( I've try lots of things that I found in google but no solution.