From: Sarah Hoffmann Date: Tue, 20 Jun 2023 08:15:51 +0000 (+0200) Subject: use string representation when dumping variables X-Git-Tag: v4.3.0~66^2~4 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/1b50381852850807a688270312952d74a309f09c use string representation when dumping variables --- 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)}'