src/eric7/Preferences/ShortcutsFile.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10458:2074b8393649 10459:5c5ed40d533d
153 # step 2.1: keyboard shortcuts 153 # step 2.1: keyboard shortcuts
154 "shortcuts": actionsDict, 154 "shortcuts": actionsDict,
155 } 155 }
156 156
157 try: 157 try:
158 jsonString = json.dumps(shortcutsDict, indent=2) 158 jsonString = json.dumps(shortcutsDict, indent=2) + "\n"
159 with open(filename, "w") as f: 159 with open(filename, "w") as f:
160 f.write(jsonString) 160 f.write(jsonString)
161 except (OSError, TypeError) as err: 161 except (OSError, TypeError) as err:
162 with EricOverridenCursor(): 162 with EricOverridenCursor():
163 EricMessageBox.critical( 163 EricMessageBox.critical(

eric ide

mercurial