import optz

This commit is contained in:
DiMartinoXBMC committed 2015-08-02 22:58:45 +03:00
1 parent fdfc3cc387
commit a4e728ae8a
92 files changed
+307 -21618

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