src/eric7/Project/UserProjectFile.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 10596
ea35c92a3c7c
equal deleted inserted replaced
10458:2074b8393649 10459:5c5ed40d533d
59 userProjectDict["header"]["saved"] = time.strftime("%Y-%m-%d, %H:%M:%S") 59 userProjectDict["header"]["saved"] = time.strftime("%Y-%m-%d, %H:%M:%S")
60 60
61 userProjectDict["user_data"] = self.__project.pudata 61 userProjectDict["user_data"] = self.__project.pudata
62 62
63 try: 63 try:
64 jsonString = json.dumps(userProjectDict, indent=2) 64 jsonString = json.dumps(userProjectDict, indent=2) + "\n"
65 with open(filename, "w") as f: 65 with open(filename, "w") as f:
66 f.write(jsonString) 66 f.write(jsonString)
67 except (OSError, TypeError) as err: 67 except (OSError, TypeError) as err:
68 with EricOverridenCursor(): 68 with EricOverridenCursor():
69 EricMessageBox.critical( 69 EricMessageBox.critical(

eric ide

mercurial