Skip to content

Commit

Permalink
Still more f-string cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmcg committed Mar 7, 2024
1 parent 07a9c8b commit 4bcb251
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 248 deletions.
2 changes: 1 addition & 1 deletion pyparsing/exceptions.py
Expand Up @@ -85,7 +85,7 @@ def explain_exception(exc, depth=16):
ret = []
if isinstance(exc, ParseBaseException):
ret.append(exc.line)
ret.append(" " * (exc.column - 1) + "^")
ret.append(f"{' ' * (exc.column - 1)}^")
ret.append(f"{type(exc).__name__}: {exc}")

if depth <= 0:
Expand Down

0 comments on commit 4bcb251

Please sign in to comment.