# HG changeset patch # User RhodeCode Admin # Date 2023-05-11 10:22:00 # Node ID 2fa117d31d1219a81b58401b078c6392c5b2687a # Parent bf543103f339f9c84b0b8183b4dee6421c03e7d1 system-info: drop safe_unicode usage diff --git a/rhodecode/lib/system_info.py b/rhodecode/lib/system_info.py --- a/rhodecode/lib/system_info.py +++ b/rhodecode/lib/system_info.py @@ -33,6 +33,8 @@ import resource import configparser +from rhodecode.lib.str_utils import safe_str + log = logging.getLogger(__name__) @@ -169,10 +171,10 @@ def py_modules(): @register_sysinfo def platform_type(): - from rhodecode.lib.utils import safe_unicode, generate_platform_uuid + from rhodecode.lib.utils import generate_platform_uuid value = dict( - name=safe_unicode(platform.platform()), + name=safe_str(platform.platform()), uuid=generate_platform_uuid() ) return SysInfoRes(value=value)