Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790c843 commit 37ad476Copy full SHA for 37ad476
1 file changed
lib/matplotlib/dviread.py
@@ -1030,6 +1030,12 @@ def find_tex_file(filename, format=None):
1030
The library that :program:`kpsewhich` is part of.
1031
"""
1032
1033
+ if six.PY3:
1034
+ if isinstance(filename, bytes):
1035
+ filename = filename.decode('utf-8', errors='replace')
1036
+ if isinstance(format, bytes):
1037
+ format = format.decode('utf-8', errors='replace')
1038
+
1039
cmd = [str('kpsewhich')]
1040
if format is not None:
1041
cmd += ['--format=' + format]
0 commit comments