aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py3/pygments/formatters/html.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-12-09 00:19:25 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-12-09 00:50:41 +0300
commit83b8a2f9228353759e59a093cb3c1270ea2c9d5b (patch)
treea90f4f91780c0613bea19f33ff8af8e93a335e8b /contrib/python/Pygments/py3/pygments/formatters/html.py
parent460528e80f26d04487dc242b7333d45bbeb43a4d (diff)
downloadydb-83b8a2f9228353759e59a093cb3c1270ea2c9d5b.tar.gz
Update contrib/python/Pygments/py3 to 2.17.2
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/formatters/html.py')
-rw-r--r--contrib/python/Pygments/py3/pygments/formatters/html.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/python/Pygments/py3/pygments/formatters/html.py b/contrib/python/Pygments/py3/pygments/formatters/html.py
index 4596dcdd1e..df2469e2a5 100644
--- a/contrib/python/Pygments/py3/pygments/formatters/html.py
+++ b/contrib/python/Pygments/py3/pygments/formatters/html.py
@@ -323,6 +323,7 @@ class HtmlFormatter(Formatter):
If set to the path of a ctags file, wrap names in anchor tags that
link to their definitions. `lineanchors` should be used, and the
tags file should specify line numbers (see the `-n` option to ctags).
+ The tags file is assumed to be encoded in UTF-8.
.. versionadded:: 1.6
@@ -908,7 +909,7 @@ class HtmlFormatter(Formatter):
def _lookup_ctag(self, token):
entry = ctags.TagEntry()
if self._ctags.find(entry, token.encode(), 0):
- return entry['file'], entry['lineNumber']
+ return entry['file'].decode(), entry['lineNumber']
else:
return None, None