changed str in order to avoid confusions and collisions with Python (#147)

This commit is contained in:
Giorgos Zachariadis
2022-06-15 23:41:16 +03:00
committed by GitHub
parent b7f9607258
commit b4c3e5b854

View File

@@ -68,8 +68,8 @@ def group_dict_by_key(cond, d):
return_val[ind][key] = d[key] return_val[ind][key] = d[key]
return (*return_val,) return (*return_val,)
def string_begins_with(prefix, str): def string_begins_with(prefix, string_input):
return str.startswith(prefix) return string_input.startswith(prefix)
def group_by_key_prefix(prefix, d): def group_by_key_prefix(prefix, d):
return group_dict_by_key(partial(string_begins_with, prefix), d) return group_dict_by_key(partial(string_begins_with, prefix), d)