Skip to content

Commit

Permalink
Resolve < py3.12 breaking quote issue
Browse files Browse the repository at this point in the history
  • Loading branch information
inno committed May 20, 2024
1 parent 1eb7b57 commit f90e10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplecli/simplecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def wrap(func: Callable[..., Any]) -> Callable[..., Any]:
if re.search(rf"[\(\s]{e.args[0]}:", line)
][0]
exit(
f"File {'"' + filename + '"'}, line {offset}\n"
f"File \x22{filename}\x22, line {offset}\n"
f"{source[0][offset - 1].rstrip()}\n"
f"UnsupportedType: {e.args[1]}"
)
Expand Down

0 comments on commit f90e10c

Please sign in to comment.