From 1b50381852850807a688270312952d74a309f09c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 20 Jun 2023 10:15:51 +0200 Subject: [PATCH] use string representation when dumping variables --- nominatim/api/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/api/logging.py b/nominatim/api/logging.py index 6bf3ed38..a4da357d 100644 --- a/nominatim/api/logging.py +++ b/nominatim/api/logging.py @@ -196,7 +196,7 @@ class HTMLLogger(BaseLogger): def _python_var(self, var: Any) -> str: if CODE_HIGHLIGHT: - fmt = highlight(repr(var), PythonLexer(), HtmlFormatter(nowrap=True)) + fmt = highlight(str(var), PythonLexer(), HtmlFormatter(nowrap=True)) return f'
{fmt}
' return f'{str(var)}' -- 2.39.5