Skip to content

Commit 78c4282

Browse files
committed
Use 'if not' instead of 'if ... is False' for no_fuzzy_matching
Matches the behavior elsewhere in the same function Fixes python-babel#698
1 parent 0444167 commit 78c4282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

babel/messages/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def _merge(message, oldkey, newkey):
807807
if key in messages:
808808
_merge(message, key, key)
809809
else:
810-
if no_fuzzy_matching is False:
810+
if not no_fuzzy_matching:
811811
# do some fuzzy matching with difflib
812812
if isinstance(key, tuple):
813813
matchkey = key[0] # just the msgid, no context

0 commit comments

Comments
 (0)