From 78c42824a61427aa73ebfa6ad5e35da16030671d Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Fri, 2 Oct 2020 12:35:56 +0300 Subject: [PATCH] Use 'if not' instead of 'if ... is False' for no_fuzzy_matching Matches the behavior elsewhere in the same function Fixes #698 --- babel/messages/catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2