X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=collate%2Ficu%2F__init__.py;fp=collate%2Ficu%2F__init__.py;h=892b8a1c80acb807a976077ae64f6bcd95c03025;hp=6f9647e4141c3238e456a0acdd40a4057da81638;hb=7dc546d67cd996c0a54b07261ab1b7bcdf4019ce;hpb=7c67e10286c784b572703666a980e85b39b858ee diff --git a/collate/icu/__init__.py b/collate/icu/__init__.py index 6f9647e..892b8a1 100644 --- a/collate/icu/__init__.py +++ b/collate/icu/__init__.py @@ -36,11 +36,6 @@ class Collator(collate._abcollator.Collator): # so this is a harmless error. self._breaker = _icu.WordBreaker("root") - def words(self, string): - if isinstance(string, str): - string = string.decode(self.encoding, 'replace') - return filter(lambda u: not u.isspace(), self._breaker.words(string)) - def key(self, string): """Sort key for a string.