8000 gh-119105: difflib: improve recursion for degenerate cases by pulkin · Pull Request #119131 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-119105: difflib: improve recursion for degenerate cases #119131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 19, 2024
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
0