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):