Skip to content

Commit 5040a3b

Browse files
YoannQDQnyalldawson
authored andcommittedMar 17, 2023
Fix flake8
1 parent 8db1026 commit 5040a3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/console/console_editor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def findMinimalDistanceIndex(source, target):
6565
from Levenshtein import distance
6666
except ImportError:
6767
from difflib import SequenceMatcher
68-
def distance(s, t): return 1 - SequenceMatcher(None, s, t).ratio()
68+
69+
def distance(s, t):
70+
return 1 - SequenceMatcher(None, s, t).ratio()
6971

7072
d0 = distance(source[:index], target)
7173
if d0 == 0:

0 commit comments

Comments
 (0)
Please sign in to comment.