system-info: drop safe_unicode usage
This commit is contained in:
parent
5f16a0bbf2
commit
a05c3915b9
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue