Skip to content

Commit 97afdc4

Browse files
authored
Merge pull request #709 from tcely/patch-15
Rename the internal function
2 parents 1cc2905 + 0850470 commit 97afdc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tubesync/sync/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ def normalize_codec(codec_str):
206206
def list_of_dictionaries(arg_list, arg_function=lambda x: x):
207207
assert callable(arg_function)
208208
if isinstance(arg_list, list):
209-
def _assert_and_call(arg_dict):
209+
def _call_func_with_dict(arg_dict):
210210
if isinstance(arg_dict, dict):
211211
return arg_function(arg_dict)
212212
return arg_dict
213-
return (True, list(map(_assert_and_call, arg_list)),)
213+
return (True, list(map(_call_func_with_dict, arg_list)),)
214214
return (False, arg_list,)
215215

216216

0 commit comments

Comments
 (0)