Skip to content

Commit

Permalink
Use 'if not' instead of 'if ... is False' for no_fuzzy_matching
Browse files Browse the repository at this point in the history
Matches the behavior elsewhere in the same function

Fixes #698
  • Loading branch information
akx committed Oct 2, 2020
1 parent 0444167 commit 78c4282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel/messages/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def _merge(message, oldkey, newkey):
if key in messages:
_merge(message, key, key)
else:
if no_fuzzy_matching is False:
if not no_fuzzy_matching:
# do some fuzzy matching with difflib
if isinstance(key, tuple):
matchkey = key[0] # just the msgid, no context
Expand Down

0 comments on commit 78c4282

Please sign in to comment.