aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprettyboy <prettyboy@yandex-team.com>2022-09-13 11:40:29 +0300
committerprettyboy <prettyboy@yandex-team.com>2022-09-13 11:40:29 +0300
commit54569b7b25f1a1f97dea46a91be868110835a0a3 (patch)
tree0249c07d324eb168b466a98a948ca206cbdc3ad8
parentc92c27d69ad2484e6b0372353da509f8fee13a31 (diff)
downloadydb-54569b7b25f1a1f97dea46a91be868110835a0a3.tar.gz
[library/python/cores] Fixed py23 compatibility in colorize_backtrace
-rw-r--r--library/python/cores/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/python/cores/__init__.py b/library/python/cores/__init__.py
index 5767c61524..1fe930dd9e 100644
--- a/library/python/cores/__init__.py
+++ b/library/python/cores/__init__.py
@@ -171,6 +171,7 @@ def colorize_backtrace(text):
(re.compile(r"\b(0x[a-f0-9]{6,})\b"), r"[[c:light-grey]]\1[[rst]]"),
]
+ text = six.ensure_str(text)
for regex, substitution in filters:
text = regex.sub(substitution, text)
return text