Commits

Georg Brandl  committed 8764c94

Convert strings to unicode in highlighting.

  • Participants
  • Parent commits a3ae47a

Comments (0)

Files changed (1)

File sphinx/highlighting.py

             return True
 
     def highlight_block(self, source, lang, linenos=False):
+        if isinstance(source, str):
+            source = source.decode()
         if not pygments:
             return self.unhighlighted(source)
         if lang in ('py', 'python'):