Skip to content

Commit 0e7293d

Browse files
committed
Update difflib
1 parent 30d4535 commit 0e7293d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/difflib.py

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

10551055
if pat is None:
1056-
stripped = line.strip()
1057-
return stripped == '' or stripped == '#'
1056+
return line.strip() in ('', '#')
10581057
return pat(line) is not None
10591058

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

0 commit comments

Comments
 (0)