Use true booleans.

This commit is contained in:
Georg Brandl 2009-05-17 12:50:58 +00:00
parent 71515ca191
commit cd86925b3b
1 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ class GNUTranslations(NullTranslations):
# Locate a .mo file using the gettext strategy # 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 # Get some reasonable defaults for arguments that were not supplied
if localedir is None: if localedir is None:
localedir = _default_localedir localedir = _default_localedir
@ -410,7 +410,7 @@ def translation(domain, localedir=None, languages=None,
class_=None, fallback=False, codeset=None): class_=None, fallback=False, codeset=None):
if class_ is None: if class_ is None:
class_ = GNUTranslations class_ = GNUTranslations
mofiles = find(domain, localedir, languages, all=1) mofiles = find(domain, localedir, languages, all=True)
if not mofiles: if not mofiles:
if fallback: if fallback:
return NullTranslations() return NullTranslations()