X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=collate%2Ficu%2F__init__.py;h=bb0dcd83bf2087c9162e2b0f5508f64ce4213880;hp=16ef1e6f044e18574f56234bf8557a3b66978d26;hb=f7fd328bfc2886f6aed2c09b84cc1e039c7c3240;hpb=c02c5c3c54d35e7d5836adf54aadac1f79906f05 diff --git a/collate/icu/__init__.py b/collate/icu/__init__.py index 16ef1e6..bb0dcd8 100644 --- a/collate/icu/__init__.py +++ b/collate/icu/__init__.py @@ -1,9 +1,12 @@ import collate.icu._ucol import collate._abcollator +NAME = "ICU" + class Collator(collate._abcollator.Collator): - def __init__(self, locale): + def __init__(self, locale, encoding): self._collator = collate.icu._ucol.Collator(locale) + self.locale = self._collator.locale def key(self, string): return self._collator.key(string)