summaryrefslogtreecommitdiff
path: root/sphinx/ext/pngmath.py
diff options
context:
space:
mode:
authorSebastian Wiesner <swiesner@lunaryorn.com>2008-11-20 20:06:36 +0100
committerSebastian Wiesner <swiesner@lunaryorn.com>2008-11-20 20:06:36 +0100
commit331f625f91e1a079424e18779e7d26e120c9e426 (patch)
treeb4bd307edafbdff9109584f4fcaa90a53cfb642f /sphinx/ext/pngmath.py
parentd02008f99d7d110d03d09d2b41795c4590a4e476 (diff)
downloadsphinx-git-331f625f91e1a079424e18779e7d26e120c9e426.tar.gz
Fixed encoding issue in pngmath hashing
Diffstat (limited to 'sphinx/ext/pngmath.py')
-rw-r--r--sphinx/ext/pngmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/pngmath.py b/sphinx/ext/pngmath.py
index 77d08eef1..aa0d0c2e6 100644
--- a/sphinx/ext/pngmath.py
+++ b/sphinx/ext/pngmath.py
@@ -75,7 +75,7 @@ def render_math(self, math):
"""
use_preview = self.builder.config.pngmath_use_preview
- shasum = "%s.png" % sha(math).hexdigest()
+ shasum = "%s.png" % sha(math.encode('utf-8')).hexdigest()
relfn = posixpath.join(self.builder.imgpath, 'math', shasum)
outfn = path.join(self.builder.outdir, '_images', 'math', shasum)
if path.isfile(outfn):