duire

french missing verbs with prefix forms
git clone https://a3nm.net/git/duire/
Log | Files | Refs

commit be01f9c71d0c6622c6d6d95ed0f6481b6b8cf077
parent 44207705bfa2f35be5f7186d6b3984a4db9efcad
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun,  4 Oct 2015 21:58:04 +0200

fix broken pipe errors

Diffstat:
duire.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/duire.py b/duire.py @@ -4,6 +4,11 @@ import operator import sys +# no "broken pipe" errors +# http://stackoverflow.com/a/16865106 +from signal import signal, SIGPIPE, SIG_DFL +signal(SIGPIPE,SIG_DFL) + prefixes = {} words = set() interesting = {}