From: Aarni Koskela Date: Fri, 2 Oct 2020 09:35:56 +0000 (+0300) Subject: Use 'if not' instead of 'if ... is False' for no_fuzzy_matching X-Git-Tag: v2.9.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c42824a61427aa73ebfa6ad5e35da16030671d;p=thirdparty%2Fbabel.git Use 'if not' instead of 'if ... is False' for no_fuzzy_matching Matches the behavior elsewhere in the same function Fixes #698 --- diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py index 2fcb461a..ed9e9a06 100644 --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -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