From 2d0bd0135d87c9eacb76de94b7156f9075ec8a42 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 25 Jul 2015 18:05:57 +0200 Subject: [PATCH] =?utf8?q?doublon=20moins=20bien=20comment=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- extract_sess.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100755 extract_sess.py diff --git a/extract_sess.py b/extract_sess.py deleted file mode 100755 index c7c2016..0000000 --- a/extract_sess.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import sqlite3 -import os - -c = sqlite3.connect(os.path.expanduser('~/.ipython/profile_default/history.sqlite')) - -r = c.execute('select * from history where session=(select max(session) from sessions);') - -for line in iter(r.fetchone, None): - print line[-1].encode('utf-8') -- 2.39.2