Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab4a691

Browse files
committed
DOC: add note about encoding choice
1 parent 37ad476 commit ab4a691

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/dviread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,8 @@ def find_tex_file(filename, format=None):
10311031
"""
10321032

10331033
if six.PY3:
1034+
# we expect these to always be ascii encoded, but use utf-8
1035+
# out of caution
10341036
if isinstance(filename, bytes):
10351037
filename = filename.decode('utf-8', errors='replace')
10361038
if isinstance(format, bytes):

0 commit comments

Comments
 (0)