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 @@ -220,7 +220,7 @@ def ulimit_info(): ('open files', get_resource(resource.RLIMIT_NOFILE)), ]) - text = ', '.join('{}:{}'.format(k, v) for k, v in data.items()) + text = ', '.join(f'{k}:{v}' for k, v in data.items()) value = { 'limits': data, @@ -299,7 +299,7 @@ def machine_load(): # load averages if hasattr(psutil.os, 'getloadavg'): value.update(dict( - zip(['1_min', '5_min', '15_min'], psutil.os.getloadavg()) + list(zip(['1_min', '5_min', '15_min'], psutil.os.getloadavg())) )) human_value = value.copy()