Commits

Anonymous committed 9bf8e6d

Fixes encoding issue with repr()

  • Participants
  • Parent commits 2fd9ac6

Comments (0)

Files changed (1)

File sphinx/util/inspect.py

 
 import sys
 
+from sphinx import util
+
 # this imports the standard library inspect module without resorting to
 # relatively import this module
 inspect = __import__('inspect')
         s = repr(object)
     except Exception:
         raise ValueError
-    return s.replace('\n', ' ')
+    return util.force_decode(s, False).replace('\n', ' ')