Skip to content

Commit 9f046b5

Browse files
committed
Update kernel.py
1 parent b8d0a35 commit 9f046b5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

postgresql_kernel/kernel.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,9 @@ def change_autocommit_mode(self, switch):
223223
)
224224

225225
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-
)
226+
committed = self.switch_autocommit(switch_bool) | ''
227+
message = f'committed current transaction & {committed} switched autocommit mode to {self._autocommit}'
228+
232229
self.send_response(
233230
self.iopub_socket, 'stream', {
234231
'name': 'stderr',

0 commit comments

Comments
 (0)