]> kaliko git repositories - mpd-sima.git/blobdiff - sima/utils/leven.py
Remove echonest doc
[mpd-sima.git] / sima / utils / leven.py
index 9b269df4357bc8db740a1f4777646e697a0966ab..d1ba2740c966cca475c11c42e5af21c5f6769b52 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (c) 2009, 2010, 2013 Jack Kaliko <kaliko@azylum.org>
+# Copyright (c) 2009, 2010, 2013 kaliko <kaliko@azylum.org>
 #
 #  This file is part of sima
 #
@@ -16,7 +16,8 @@
 #  You should have received a copy of the GNU General Public License
 #  along with sima.  If not, see <http://www.gnu.org/licenses/>.
 #
-#
+"""Computes levenshtein distance/ratio"""
+
 
 def levenshtein(a_st, b_st):
     """Computes the Levenshtein distance between two strings."""
@@ -38,6 +39,7 @@ def levenshtein(a_st, b_st):
 
     return current[n_a]
 
+
 def levenshtein_ratio(string, strong):
     """
     Compute levenshtein ratio.