From cd86925b3bb994a8b2662cbe04be356768df5e86 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 May 2009 12:50:58 +0000 Subject: [PATCH] Use true booleans. --- Lib/gettext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/gettext.py b/Lib/gettext.py index c80b9c8ac7..d62ac07516 100644 --- a/Lib/gettext.py +++ b/Lib/gettext.py @@ -366,7 +366,7 @@ class GNUTranslations(NullTranslations): # Locate a .mo file using the gettext strategy -def find(domain, localedir=None, languages=None, all=0): +def find(domain, localedir=None, languages=None, all=False): # Get some reasonable defaults for arguments that were not supplied if localedir is None: localedir = _default_localedir @@ -410,7 +410,7 @@ def translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None): if class_ is None: class_ = GNUTranslations - mofiles = find(domain, localedir, languages, all=1) + mofiles = find(domain, localedir, languages, all=True) if not mofiles: if fallback: return NullTranslations() -- 2.40.0