Skip to content

Commit 32337c3

Browse files
donBarbospicnixz
andauthored
Update Lib/difflib.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 64dff4a commit 32337c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/difflib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,8 @@ def IS_LINE_JUNK(line, pat=None):
10531053
"""
10541054

10551055
if pat is None:
1056-
return line.strip() == '' or line.strip() == '#'
1056+
stripped = line.strip()
1057+
return stripped == '' or stripped == '#'
10571058
return pat(line) is not None
10581059

10591060
def IS_CHARACTER_JUNK(ch, ws=" \t"):

0 commit comments

Comments
 (0)