We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8d0a35 commit 9f046b5Copy full SHA for 9f046b5
postgresql_kernel/kernel.py
@@ -223,12 +223,9 @@ def change_autocommit_mode(self, switch):
223
)
224
225
switch_bool = (parsed_switch == 'true')
226
- committed = self.switch_autocommit(switch_bool)
227
- message = (
228
- 'committed current transaction & ' if committed else '' +
229
- 'switched autocommit mode to ' +
230
- str(self._autocommit)
231
- )
+ committed = self.switch_autocommit(switch_bool) | ''
+ message = f'committed current transaction & {committed} switched autocommit mode to {self._autocommit}'
+
232
self.send_response(
233
self.iopub_socket, 'stream', {
234
'name': 'stderr',
0 commit comments