Commit cd86925b authored by Georg Brandl's avatar Georg Brandl

Use true booleans.

parent 71515ca1
...@@ -366,7 +366,7 @@ class GNUTranslations(NullTranslations): ...@@ -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, ...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment