RussakHH stable roll-back 2

This commit is contained in:
DiMartinoXBMC committed 2015-12-15 17:18:06 +03:00
1 parent ff762538f1
commit 3e7fa281e9
13 files changed
+64 -44

No files matched your search

@@ -7,9 +7,11 @@ ported from python-Levenshtein
[https://github.com/miohtama/python-Levenshtein]
"""
from Levenshtein import *
from warnings import warn
from Levenshtein import *
class StringMatcher:
"""A SequenceMatcher-like class built on the top of Levenshtein"""
-2
View File
@@ -25,12 +25,10 @@ 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