# HG changeset patch # User RhodeCode Admin # Date 2023-03-20 20:22:34 # Node ID 82d253bde1f251f6dfe9c976b9898127456c7e3f # Parent 4fcca1baf636bc3cb80323ad6c50fdbee005a277 system-info: fixed iterators 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()