Skip to content

Commit aa4711f

Browse files
authored
fix broken matching_blocks conversion
1 parent d252234 commit aa4711f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### v0.20.1
4+
#### Fixed
5+
- fix broken matching_blocks conversion
6+
37
### v0.20.0
48
#### Changed
59
- use `matching_blocks`/`apply`/`remove_subsequence`/`inverse` implementation from RapidFuzz

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Max Bachmann'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.20.0'
25+
release = '0.20.1'
2626

2727
# -- General configuration ---------------------------------------------------
2828

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="Levenshtein",
8-
version="0.20.0",
8+
version="0.20.1",
99
url="https://github.com/maxbachmann/Levenshtein",
1010
author="Max Bachmann",
1111
install_requires=["rapidfuzz >= 2.3.0, < 3.0.0"],

src/Levenshtein/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
__author__: str = "Max Bachmann"
1818
__license__: str = "GPL"
19-
__version__: str = "0.20.0"
19+
__version__: str = "0.20.1"
2020

2121
from rapidfuzz.distance.Levenshtein import distance
2222
from rapidfuzz.distance.Indel import normalized_similarity as ratio
@@ -161,9 +161,9 @@ def matching_blocks(edit_operations, source_string, destination_string):
161161
len2 = destination_string if isinstance(destination_string, int) else len(destination_string)
162162

163163
if len(edit_operations[0]) == 3:
164-
return _Editops(edit_operations, len1, len2).as_matching_blocks().as_list()
164+
return _Editops(edit_operations, len1, len2).as_matching_blocks()
165165

166-
return _Opcodes(edit_operations, len1, len2).as_matching_blocks().as_list()
166+
return _Opcodes(edit_operations, len1, len2).as_matching_blocks()
167167

168168

169169
def apply_edit(edit_operations, source_string, destination_string):

0 commit comments

Comments
 (0)