[Python-checkins] r72743 - python/branches/py3k/Lib/gettext.py

georg.brandl python-checkins at python.org
Sun May 17 14:50:58 CEST 2009


Author: georg.brandl
Date: Sun May 17 14:50:58 2009
New Revision: 72743

Log:
Use true booleans.

Modified:
   python/branches/py3k/Lib/gettext.py

Modified: python/branches/py3k/Lib/gettext.py
==============================================================================
--- python/branches/py3k/Lib/gettext.py	(original)
+++ python/branches/py3k/Lib/gettext.py	Sun May 17 14:50:58 2009
@@ -366,7 +366,7 @@
 
 
 # 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 @@
                 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()


More information about the Python-checkins mailing list