summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-07-20 01:28:38 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-07-20 01:28:41 +0900
commitf272d6876cb499ac25f779e606593e3459e565b7 (patch)
tree43b80f24f5f43ad31676126d5f64da9bdf072105 /sphinx/highlighting.py
parent85881897e0ec646c7dc69ddb2dc5cf04178cc91b (diff)
downloadsphinx-git-f272d6876cb499ac25f779e606593e3459e565b7.tar.gz
Remove unused code
Now sphinx depends on pygments-2.0 or higher. So this code is not passed.
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 7d5956570..dd248107c 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -161,8 +161,6 @@ class PygmentsBridge(object):
if self.dest == 'html':
return hlsource
else:
- if not isinstance(hlsource, text_type): # Py2 / Pygments < 1.6
- hlsource = hlsource.decode()
return hlsource.translate(tex_hl_escape_map_new)
def get_stylesheet(self):