From: Joe Wreschnig Date: Sat, 13 Feb 2010 06:02:30 +0000 (-0800) Subject: set_default: Forgot to break. X-Git-Url: https://git.korewanetadesu.com/?a=commitdiff_plain;h=4b36ae37b80cfdba31586df277cbde2899d36185;p=python-collate.git set_default: Forgot to break. --- 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