From: Vincent Le Gallic Date: Sat, 25 Jul 2015 16:05:57 +0000 (+0200) Subject: doublon moins bien commenté X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=2d0bd0135d87c9eacb76de94b7156f9075ec8a42;p=scripts-20-100.git doublon moins bien commenté --- 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')