i am getting 2 values like this: headName = fileExist.split("_").split("_GNLog.").encode("utf-8") headUnit = line.split("SYS CONFIG | name=").split(' ').encode("utf-8")
but when i do a compare like this: if (headName == headUnit): return 1 else: return 0
but everytime i run the complete code, the comparison returns 0 everytime. can somebody please tell m why?
Log in to post a comment.
i am getting 2 values like this:
headName = fileExist.split("_").split("_GNLog.").encode("utf-8")
headUnit = line.split("SYS CONFIG | name=").split(' ').encode("utf-8")
but when i do a compare like this:
if (headName == headUnit):
return 1
else:
return 0
but everytime i run the complete code, the comparison returns 0 everytime. can somebody please tell m why?