Skip to content

Commit

Permalink
Completely fix #1 and close #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazza committed Jan 2, 2018
1 parent 135344a commit f03f5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recuperabit/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def preprocess_pattern(pattern):
This function performs preprocessing for the Baeza-Yates--Perleberg
fast and practical approximate string matching algorithm."""
result = {}
length = len(pattern)
length = pattern.__len__()
for k in pattern:
name = pattern[k]
if name not in result:
Expand Down

0 comments on commit f03f5e9

Please sign in to comment.