]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
doublon moins bien commenté
authorVincent Le Gallic <legallic@crans.org>
Sat, 25 Jul 2015 16:05:57 +0000 (18:05 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sat, 25 Jul 2015 16:06:19 +0000 (18:06 +0200)
extract_sess.py [deleted file]

diff --git a/extract_sess.py b/extract_sess.py
deleted file mode 100755 (executable)
index c7c2016..0000000
+++ /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')