From 4b36ae37b80cfdba31586df277cbde2899d36185 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Fri, 12 Feb 2010 22:02:30 -0800 Subject: [PATCH] set_default: Forgot to break. --- collate/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collate/__init__.py b/collate/__init__.py index 0f50170..157f29a 100644 --- a/collate/__init__.py +++ b/collate/__init__.py @@ -34,6 +34,8 @@ def set_default(backend=None, locale=None, encoding=None): c = backend.Collator(locale, encoding_) except collate.errors.InvalidLocaleError: pass + else: + break if c is not None: collator = c default = backend -- 2.30.2