Skip to content

Commit

Permalink
Blackening
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmcg committed Feb 25, 2024
1 parent 670ba22 commit 26e2180
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 3 additions & 1 deletion pyparsing/exceptions.py
Expand Up @@ -14,7 +14,9 @@
from .unicode import pyparsing_unicode as ppu


class _ExceptionWordUnicodeSet(ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic):
class _ExceptionWordUnicodeSet(
ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic
):
pass


Expand Down
12 changes: 6 additions & 6 deletions pyparsing/results.py
Expand Up @@ -693,14 +693,14 @@ def dump(self, indent="", full=True, include_list=True, _depth=0) -> str:
for i, vv in enumerate(v):
if isinstance(vv, ParseResults):
vv_dump = vv.dump(
indent=indent,
full=full,
include_list=include_list,
_depth=_depth + 1,
)
indent=indent,
full=full,
include_list=include_list,
_depth=_depth + 1,
)
out.append(
f"{nl}{indent}{incr * _depth}[{i}]:{nl}{indent}{incr * (_depth + 1)}{vv_dump}"
)
)
else:
out.append(
f"{nl}{indent}{incr * _depth}[{i}]:{nl}{indent}{incr * (_depth + 1)}{vv}"
Expand Down
4 changes: 3 additions & 1 deletion pyparsing/testing.py
Expand Up @@ -235,7 +235,9 @@ def assertRunTestResults(
)

@contextmanager
def assertRaisesParseException(self, exc_type=ParseException, expected_msg=None, msg=None):
def assertRaisesParseException(
self, exc_type=ParseException, expected_msg=None, msg=None
):
if expected_msg is not None:
if isinstance(expected_msg, str):
expected_msg = re.escape(expected_msg)
Expand Down

0 comments on commit 26e2180

Please sign in to comment.