Skip to content

Commit e6ed66b

Browse files
committed
Change doctest for LineStart to reflect latest implementation of "is this token at the start of the line?"
1 parent 23092da commit e6ed66b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyparsing/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __repr__(self):
125125

126126

127127
__version_info__ = version_info(3, 2, 4, "final", 1)
128-
__version_time__ = "09 Aug 2025 16:55 UTC"
128+
__version_time__ = "07 Sep 2025 00:46 UTC"
129129
__version__ = __version_info__.__version__
130130
__versionTime__ = __version_time__
131131
__author__ = "Paul McGuire <[email protected]>"

pyparsing/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3990,8 +3990,8 @@ class LineStart(PositionToken):
39903990
test = '''\
39913991
AAA this line
39923992
AAA and this line
3993-
AAA but not this one
3994-
B AAA and definitely not this one
3993+
AAA and even this line
3994+
B AAA but definitely not this line
39953995
'''
39963996
39973997
for t in (LineStart() + 'AAA' + rest_of_line).search_string(test):
@@ -4003,6 +4003,7 @@ class LineStart(PositionToken):
40034003
40044004
['AAA', ' this line']
40054005
['AAA', ' and this line']
4006+
['AAA', ' and even this line']
40064007
40074008
"""
40084009

0 commit comments

Comments
 (0)