projects
/
python-collate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New approach - find split points based on Unicode categories.
[python-collate.git]
/
collate
/
icu
/
__init__.py
diff --git
a/collate/icu/__init__.py
b/collate/icu/__init__.py
index
6f9647e
..
892b8a1
100644
(file)
--- 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")
# 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.
def key(self, string):
"""Sort key for a string.