mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 13:06:34 +00:00
Rename the internal function
After removing the assert, the old name was a bit confusing.
This commit is contained in:
parent
8d89cc01f9
commit
0850470867
@ -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,)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user