Skip to content

Commit

Permalink
Fix evaluating values for Python 3.9
Browse files Browse the repository at this point in the history
`literal_eval` only strips leading spaces in 3.10+
  • Loading branch information
ZedThree committed May 3, 2024
1 parent 4153348 commit a51ede4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epydeck/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _parse_block(line: str, fh: TextIOBase) -> dict:
key = key.strip()

try:
value = literal_eval(value)
value = literal_eval(value.strip())
except (ValueError, SyntaxError):
value = value.strip()

Expand Down

0 comments on commit a51ede4

Please sign in to comment.