issues
search
avian2
/
unidecode
ASCII transliterations of Unicode text - GitHub mirror
https://pypi.python.org/pypi/Unidecode
GNU General Public License v2.0
517
stars
62
forks
source link
Port tools/check_character_names.py to Python 3
#42
Closed
jdufresne
closed
5 years ago
jdufresne
commented
5 years ago
Use
print()
function, not statement
Replace
chr()
with
unichr()
Convert tabs to spaces to follow PEP8
Replace variable
all
with
total
to avoid shadowing the builtin
Compile the regular expression once to avoid the overhead in the loop
Use a context manager to always close the
"NamesList.txt"
file
print()
function, not statementchr()
withunichr()
all
withtotal
to avoid shadowing the builtin"NamesList.txt"
file