set_default: Forgot to break.
[python-collate.git] / collate / icu / __init__.py
1 import collate.icu._ucol
2 import collate._abcollator
3
4 class Collator(collate._abcollator.Collator):
5 def __init__(self, locale, encoding):
6 self._collator = collate.icu._ucol.Collator(locale)
7 self.locale = self._collator.locale
8
9 def key(self, string):
10 return self._collator.key(string)
11
12 def cmp(self, string1, string2):
13 return self._collator.cmp(string1, string2)