From: Georg Brandl Date: Sun, 17 May 2009 12:50:58 +0000 (+0000) Subject: Use true booleans. X-Git-Tag: v3.1rc1~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd86925b3bb994a8b2662cbe04be356768df5e86;p=python Use true booleans. --- 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()