Skip to content

Commit a38b0f8

Browse files
fix style
1 parent 5cedcac commit a38b0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/openpulse/openpulse/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def parse_openpulse(
8787
try:
8888
tree = parser.calibrationBlock()
8989
except (RecognitionException, ParseCancellationException) as exc:
90-
msg = ''
90+
msg = ""
9191
# With BailErrorStrategy, we should be able to recover and report
9292
# information about the offending token.
9393
if isinstance(exc, ParseCancellationException) and exc.args:
94-
tok = getattr(exc.args[0], 'offendingToken', None)
94+
tok = getattr(exc.args[0], "offendingToken", None)
9595
if tok is not None:
9696
msg = f"Unexpected token '{tok.text}' at line {tok.line}, column {tok.start}."
9797
raise OpenPulseParsingError(msg) from exc

0 commit comments

Comments
 (0)