Commits

Sebastian Wiesner  committed f7b5834

Fixed encoding issue in pngmath hashing

  • Participants
  • Parent commits c044e75

Comments (0)

Files changed (1)

File sphinx/ext/pngmath.py

     """
     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):