diff options
author | prettyboy <prettyboy@yandex-team.com> | 2022-09-13 11:40:29 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2022-09-13 11:40:29 +0300 |
commit | 54569b7b25f1a1f97dea46a91be868110835a0a3 (patch) | |
tree | 0249c07d324eb168b466a98a948ca206cbdc3ad8 /library/python | |
parent | c92c27d69ad2484e6b0372353da509f8fee13a31 (diff) | |
download | ydb-54569b7b25f1a1f97dea46a91be868110835a0a3.tar.gz |
[library/python/cores] Fixed py23 compatibility in colorize_backtrace
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/cores/__init__.py | 1 |
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 |