1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

copy input list so we don't mutate the caller's data

This commit is contained in:
Kelly Brazil
2022-03-15 16:04:58 -07:00
parent 3ab25d02f9
commit f804c9627f

View File

@ -90,6 +90,7 @@ def sparse_table_parse(data: List[str], delim: str = '\u2063') -> List[Dict]:
List of Dictionaries
"""
data = data.copy()
output: List = []
header_text: str = data.pop(0)
header_text = header_text + ' '