RussakHH stable roll-back

This commit is contained in:
DiMartinoXBMC committed 2015-12-15 17:09:25 +03:00
1 parent 43b53abba7
commit ff762538f1
21 files changed
+490 -870

No files matched your search

@@ -7,10 +7,8 @@ ported from python-Levenshtein
[https://github.com/miohtama/python-Levenshtein]
"""
from warnings import warn
from Levenshtein import *
from warnings import warn
class StringMatcher:
"""A SequenceMatcher-like class built on the top of Levenshtein"""
+2
View File
@@ -25,10 +25,12 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
from __future__ import unicode_literals
import warnings
try:
from .StringMatcher import StringMatcher as SequenceMatcher
except ImportError:
#warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
from difflib import SequenceMatcher
from . import utils