src/eric7/Sessions/SessionFile.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 10596
ea35c92a3c7c
child 10621
f5631f40c4d9
equal deleted inserted replaced
10458:2074b8393649 10459:5c5ed40d533d
220 } 220 }
221 ) 221 )
222 sessionDict["ProjectBrowserStates"] = browsersList 222 sessionDict["ProjectBrowserStates"] = browsersList
223 223
224 try: 224 try:
225 jsonString = json.dumps(sessionDict, indent=2) 225 jsonString = json.dumps(sessionDict, indent=2) + "\n"
226 with open(filename, "w") as f: 226 with open(filename, "w") as f:
227 f.write(jsonString) 227 f.write(jsonString)
228 except (OSError, TypeError) as err: 228 except (OSError, TypeError) as err:
229 with EricOverridenCursor(): 229 with EricOverridenCursor():
230 EricMessageBox.critical( 230 EricMessageBox.critical(

eric ide

mercurial