]> granicus.if.org Git - python/commitdiff
Use true booleans.
authorGeorg Brandl <georg@python.org>
Sun, 17 May 2009 12:50:58 +0000 (12:50 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 May 2009 12:50:58 +0000 (12:50 +0000)
Lib/gettext.py

index c80b9c8ac730bb2505f756d3638e752587f7d3b8..d62ac07516ada8768511f1ca4533e3f6271af03d 100644 (file)
@@ -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()