Skip to content

Commit

Permalink
Make md5 take byte as argument, not string
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcdougall committed Oct 16, 2012
1 parent 600fd2d commit 5e36bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/sphinxext/mathmpl.py
Expand Up @@ -65,7 +65,7 @@ def latex2png(latex, filename, fontset='cm'):
def latex2html(node, source):
inline = isinstance(node.parent, nodes.TextElement)
latex = node['latex']
name = 'math-%s' % md5(latex).hexdigest()[-10:]
name = 'math-%s' % md5(latex.encode()).hexdigest()[-10:]

destdir = os.path.join(setup.app.builder.outdir, '_images', 'mathmpl')
if not os.path.exists(destdir):
Expand Down

0 comments on commit 5e36bb7

Please sign in to comment.