drime

French rhyme dictionary with web and CLI interface
git clone https://a3nm.net/git/drime/
Log | Files | Refs | README

commit 7d80e47baeae9a88a715c910d1f7bcce5d6f11ef
parent 6f37d4cf9cb02c8d0862a21f1b1380d8095d4087
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 11 Jan 2020 12:10:24 +0100

update shebangs to use python3

Diffstat:
TODO | 1-
common.py | 2+-
db_mysql.py | 2+-
drime.py | 2+-
frhyme.py | 2+-
haspirater.py | 2+-
lexique2sql.py | 2+-
metric.py | 2+-
query.py | 2+-
reorder.py | 2+-
rhyme.py | 2+-
vowels.py | 2+-
12 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/TODO b/TODO @@ -1,6 +1,5 @@ - use the haspirater, frhyme and plint modules without hardcoding the old versions -- only use python3 - change db module - refactor common.py with plint - lien pour forcer la langue sur l'interface web diff --git a/common.py b/common.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 #coding: utf-8 import unicodedata diff --git a/db_mysql.py b/db_mysql.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -O +#!/usr/bin/env python3 import pymysql import pymysql.cursors diff --git a/drime.py b/drime.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -O +#!/usr/bin/env python3 import query from flask import Flask, render_template, request, jsonify diff --git a/frhyme.py b/frhyme.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -O +#!/usr/bin/env python3 """Try to guess the last few phonemes of a French word, by a lookup in a precompiled trie""" diff --git a/haspirater.py b/haspirater.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """Determine if a French word starts by an aspirated 'h' or not, by a lookup in a precompiled trie""" diff --git a/lexique2sql.py b/lexique2sql.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -O +#!/usr/bin/env python3 """Prepare the rhyme database diff --git a/metric.py b/metric.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 #coding: utf-8 # this file is pretty generic, because it's part of a larger project I haven't diff --git a/query.py b/query.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -O +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys diff --git a/reorder.py b/reorder.py @@ -1,4 +1,4 @@ -#!/usr/bin/python -O +#!/usr/bin/env python3 # TODO test "suis", "lui"... no multiple interpretations! # TODO assonance diff --git a/rhyme.py b/rhyme.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -u +#!/usr/bin/env python3 #encoding: utf8 import copy diff --git a/vowels.py b/vowels.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 #coding: utf-8 """Compute the number of syllabes taken by a vowel chunk"""