diff options
Diffstat (limited to 'deb_patches/python3-remove-fstrings.patch')
-rw-r--r-- | deb_patches/python3-remove-fstrings.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deb_patches/python3-remove-fstrings.patch b/deb_patches/python3-remove-fstrings.patch index abc5be8..75f20d9 100644 --- a/deb_patches/python3-remove-fstrings.patch +++ b/deb_patches/python3-remove-fstrings.patch @@ -427,6 +427,6 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com> category_name = util.snake_case(category_name) - full_path = f"{category_name}::{metric_name}" + full_path = "{}::{}".format(category_name, metric_name) - objs_by_type[key].append((get_metric_id(metric), full_path)) - # Now for the modules for each category. + if metric.type == "event": + events_by_id[get_metric_id(metric)] = full_path |