diff options
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r-- | pyparsing/exceptions.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py index caefdff..ed88ad2 100644 --- a/pyparsing/exceptions.py +++ b/pyparsing/exceptions.py @@ -9,7 +9,7 @@ from .util import ( line, lineno, _collapse_string_to_ranges, - replaces_prePEP8_function, + replaced_by_pep8, ) from .unicode import pyparsing_unicode as ppu @@ -163,7 +163,6 @@ class ParseBaseException(Exception): def __repr__(self): return str(self) - @replaces_prePEP8_function("markInputline") def mark_input_line(self, marker_string: str = None, *, markerString=">!<") -> str: """ Extracts the exception line from the input string, and marks @@ -217,6 +216,11 @@ class ParseBaseException(Exception): """ return self.explain_exception(self, depth) + # fmt: off + @replaced_by_pep8(mark_input_line) + def markInputline(self): ... + # fmt: on + class ParseException(ParseBaseException): """ |