set_default: Forgot to break.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 13 Feb 2010 06:02:30 +0000 (22:02 -0800)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 13 Feb 2010 06:02:30 +0000 (22:02 -0800)
collate/__init__.py

index 0f501705efe13ae4cfae0da818a033c5ba5a3319..157f29aad3f96f821917588aa6df7d578a8f8f44 100644 (file)
@@ -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