NameError: name 'unicode' is not defined

Viewed 39214
fileMain = open("dictionary_15k.txt", "r")
for line1 in fileMain:
    dictWords.append(unicode(line1.strip(), "utf-8"))

When compiled it shows

NameError: name 'unicode' is not defined
1 Answers
Related