-
Notifications
You must be signed in to change notification settings - Fork 451
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
Fix two issues with fuzzy matching #970
Conversation
This seems intended at easing fuzzy matching with trivial edits in the msgstr (changing case and adding whitespace), but it was only done on the new msgstr, not on the old mgstr candidates, so it was possible for merging catalogs to miss messages.
difflib has a heuristic that used to make fuzzy matching unreliable for >200char strings. See python/cpython#90825 Fixes #969
Codecov Report
@@ Coverage Diff @@
## master #970 +/- ##
==========================================
- Coverage 90.88% 90.88% -0.01%
==========================================
Files 25 25
Lines 4333 4354 +21
==========================================
+ Hits 3938 3957 +19
- Misses 395 397 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Is the 0.01% coverage decrease something I should worry about? |
(Note that the two lines that don't have coverage are sanity check lines from the original |
Not at all :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good! Sorry for the delayed review.
Thank you for taking the time. |
Fixes #969