summaryrefslogtreecommitdiff
path: root/Lib/gettext.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-17 12:50:58 +0000
committerGeorg Brandl <georg@python.org>2009-05-17 12:50:58 +0000
commitcd86925b3bb994a8b2662cbe04be356768df5e86 (patch)
treec99f14146fcb49e4cb77ac1fc6224b4c0c2043db /Lib/gettext.py
parent71515ca191f32651c923c70e891632b4ac820b4f (diff)
downloadcpython-git-cd86925b3bb994a8b2662cbe04be356768df5e86.tar.gz
Use true booleans.
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r--Lib/gettext.py4
1 files changed, 2 insertions, 2 deletions
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()