From 522da600c2bb04ef9a02351234ec1f95b68c7baa Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 2 May 2010 22:15:50 -0400 Subject: Updates for the latest releases of flufl.enum and flufl.i18n. --- src/mailman/testing/i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mailman/testing') diff --git a/src/mailman/testing/i18n.py b/src/mailman/testing/i18n.py index 3edefc519..1f97d8df3 100644 --- a/src/mailman/testing/i18n.py +++ b/src/mailman/testing/i18n.py @@ -40,8 +40,8 @@ class TestingStrategy: def __init__(self, name): self.name = name - def __call__(self, language_code): - if language_code == 'en': + def __call__(self, language_code=None): + if language_code in ('en', None): return NullTranslations() mo_file = 'mailman-%s.mo' % language_code with closing(resource_stream('mailman.testing', mo_file)) as fp: -- cgit v1.3.1