Update "unicode_to_ascii.py" utility.
@@ -46,9 +46,9 @@ def unicode_to_ascii(root_directory):
for root, dirnames, filenames in os.walk(root_directory):
for filename in filenames:
- if (not filename.endswith('.py') and
- not filename.endswith('.bib') and
- not filename.endswith('.rst')):
+ if (not filename.endswith('.tex') and not filename.endswith('.py')
+ and not filename.endswith('.bib')
+ and not filename.endswith('.rst')):
continue
if filename == 'unicode_to_ascii.py':
@@ -62,8 +62,7 @@ def unicode_to_ascii(root_directory):
for key, value in SUBSTITUTIONS.items():
content = content.replace(key, value)
- content = unicodedata.normalize('NFD', content).encode(
- 'ascii', 'ignore')
+ content = unicodedata.normalize('NFD', content)
file_handle.write(content)
