]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Use 'if not' instead of 'if ... is False' for no_fuzzy_matching
authorAarni Koskela <akx@iki.fi>
Fri, 2 Oct 2020 09:35:56 +0000 (12:35 +0300)
committerAarni Koskela <akx@iki.fi>
Fri, 2 Oct 2020 09:57:15 +0000 (12:57 +0300)
Matches the behavior elsewhere in the same function

Fixes #698

babel/messages/catalog.py

index 2fcb461a8a8d9b8120d3ef27e8305c1b75e53a31..ed9e9a062e4c2246a3ee0af7516695554a6111a2 100644 (file)
@@ -807,7 +807,7 @@ class Catalog(object):
                 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