Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/idlelib/colorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def make_pat():
]) +
r"))"
)
lazy_softkw = (
lazy_softkw = ( # lazy new in 3.15 (+ 2 lines below).
r"^[ \t]*" + # at beginning of line + possible indentation
r"(?P<LAZY_SOFTKW>lazy)" +
r"(?=[ \t]+(?:import|from)\b)" # followed by 'import' or 'from'
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/idle_test/test_colorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def test_case_soft_keyword(self):
self._assert_highlighting('case _:', {'KEYWORD': [('1.0', '1.4'),
('1.5', '1.6')]})

def test_lazy_soft_keyword(self):
def test_lazy_soft_keyword(self): # lazy new in 3.15.
# lazy followed by import
self._assert_highlighting('lazy import foo',
{'KEYWORD': [('1.0', '1.4'),
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/idle_test/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __eq__(self, other):
"Or did you forget to import 'abc'?\n"),
('int.reel', AttributeError,
"type object 'int' has no attribute 'reel'. "
"Did you mean '.real' instead of '.reel'?\n"),
"Did you mean '.real' instead of '.reel'?\n"), # More in 3.15.
)

@force_not_colorized
Expand Down
Loading