summaryrefslogtreecommitdiff
path: root/pyparsing/exceptions.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2022-06-16 02:30:56 -0500
committerptmcg <ptmcg@austin.rr.com>2022-06-16 02:30:56 -0500
commit9c39a15cb42486bbbee828268d80cef3fe362df3 (patch)
treed99ca49bf68bcf2f5ca70fb8c75067281cd3949c /pyparsing/exceptions.py
parent24f3904616c8aad14750383632e3bfc8234edac5 (diff)
downloadpyparsing-git-9c39a15cb42486bbbee828268d80cef3fe362df3.tar.gz
More docstring fixup, in exceptions.py - issue #411
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r--pyparsing/exceptions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py
index 31a5711..4cc45c4 100644
--- a/pyparsing/exceptions.py
+++ b/pyparsing/exceptions.py
@@ -4,7 +4,7 @@ import re
import sys
import typing
-from .util import col, line, lineno, _collapse_string_to_ranges
+from .util import col, line, lineno, _collapse_string_to_ranges, replaces_prePEP8_function
from .unicode import pyparsing_unicode as ppu
@@ -157,6 +157,7 @@ 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
@@ -210,8 +211,6 @@ class ParseBaseException(Exception):
"""
return self.explain_exception(self, depth)
- markInputline = mark_input_line
-
class ParseException(ParseBaseException):
"""