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

Skip to content

Commit b940775

Browse files
committed
Python 3 fix
1 parent b9eeb44 commit b940775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ def get_file_hash(path, block_size=2 ** 20):
102102

103103
if path.endswith('.pdf'):
104104
from matplotlib import checkdep_ghostscript
105-
md5.update(checkdep_ghostscript()[1])
105+
md5.update(checkdep_ghostscript()[1].encode('utf-8'))
106106
elif path.endswith('.svg'):
107107
from matplotlib import checkdep_inkscape
108-
md5.update(checkdep_inkscape())
108+
md5.update(checkdep_inkscape().encode('utf-8'))
109109

110110
return md5.hexdigest()
111111

0 commit comments

Comments
 (0)