1. Doug Hellmann
  2. sphinx

Commits

DasIch  committed fd0ae6f

Check if a string is not unicode as a workaround for 3.x

  • Participants
  • Parent commits 6f8eba9
  • Branches default

Comments (0)

Files changed (1)

File sphinx/highlighting.py

View file
             return True
 
     def highlight_block(self, source, lang, linenos=False, warn=None):
-        if isinstance(source, str):
+        if not isinstance(source, unicode):
             source = source.decode()
         if not pygments:
             return self.unhighlighted(source)