stop running 'remove_unsafe_private_use' unnecessarily

This commit is contained in:
Rob Speer 2015-02-17 14:02:36 -05:00
parent 6ab72201cd
commit b6f246ecbb

View File

@ -1,6 +1,5 @@
# coding: utf-8
from unicodedata import normalize
from ftfy.fixes import remove_unsafe_private_use
def standardize_word(word):
@ -21,4 +20,4 @@ def standardize_word(word):
that the capitalized versions will not share a word count with the
lowercase versions.
"""
return normalize('NFKC', remove_unsafe_private_use(word)).lower()
return normalize('NFKC', word).lower()