Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
difflib.py: rm left-over
  • Loading branch information
pulkin authored May 18, 2024
commit 2184911512a97be851bd12fdaa71c5327a82330b
1 change: 0 additions & 1 deletion Lib/difflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,6 @@ def _fancy_replace(self, a, alo, ahi, b, blo, bhi):
weight += alen
elif j > blen / 2:
weight -= alen
weight = min(j - blo, bhi - 1 - j) * (ahi - alo - 1)
for i in range(alo, ahi):
ai = a[i]
if ai == bj:
Expand Down