From 80d5bf272cc08c955f33d8a6d576cb868c9ef186 2023-03-10 07:10:01 From: Audrey Dutcher Date: 2023-03-10 07:10:01 Subject: [PATCH] Use single quotes in sql string literal --- diff --git a/IPython/core/history.py b/IPython/core/history.py index 1a89060..fd5a868 100644 --- a/IPython/core/history.py +++ b/IPython/core/history.py @@ -567,8 +567,11 @@ class HistoryManager(HistoryAccessor): conn = self.db with conn: - cur = conn.execute("""INSERT INTO sessions VALUES (NULL, ?, NULL, - NULL, "") """, (datetime.datetime.now(),)) + cur = conn.execute( + """INSERT INTO sessions VALUES (NULL, ?, NULL, + NULL, '') """, + (datetime.datetime.now(),), + ) self.session_number = cur.lastrowid def end_session(self):