My code:
def getAppHistory(self): path = self.APP_STORAGE + "\\history.dat" if os.path.exists(path): hist_file = open(path, "r") hist_data = hist_file.read() else: hist_file = open(path, "w") hist_data = "[200, \"Empty\", \"You have no device history!\", \"self.Void\"]" hist_file.write(hist_data) self.conn_menu.append(eval(hist_data)) The error:
File "C:\Users\Judge\Desktop\Lulz\Lulz.py", line 113, in getAppHistory self.conn_menu.append(eval(hist_data)) File "<string>", line 0 ^ SyntaxError: unexpected EOF while parsing