From 08504708674b918cf2e77c2feeb4496dcaa553d5 Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 10 Feb 2025 22:57:09 -0500 Subject: [PATCH] Rename the internal function After removing the assert, the old name was a bit confusing. --- tubesync/sync/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/utils.py b/tubesync/sync/utils.py index fa904c5f..9f599672 100644 --- a/tubesync/sync/utils.py +++ b/tubesync/sync/utils.py @@ -206,11 +206,11 @@ def normalize_codec(codec_str): def list_of_dictionaries(arg_list, arg_function=lambda x: x): assert callable(arg_function) if isinstance(arg_list, list): - def _assert_and_call(arg_dict): + def _call_func_with_dict(arg_dict): if isinstance(arg_dict, dict): return arg_function(arg_dict) return arg_dict - return (True, list(map(_assert_and_call, arg_list)),) + return (True, list(map(_call_func_with_dict, arg_list)),) return (False, arg_list,)