Skip to content

Commit

Permalink
join needed to use as a dict key
Browse files Browse the repository at this point in the history
  • Loading branch information
Novecento99 committed Jul 17, 2024
1 parent 99679b8 commit 711b759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap7/util/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def parse_specification(db_specification: str) -> Dict[str, Any]:
for line in db_specification.split("\n"):
if line and not line.lstrip().startswith("#"):
index, *var_name, _type = line.lstrip().split("#")[0].split()

var_name = "".join(var_name)
parsed_db_specification[var_name] = (index, _type)

return parsed_db_specification
Expand Down

0 comments on commit 711b759

Please sign in to comment.