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( |