Skip to content

Commit 60951fb

Browse files
authored
Improve clarity of expression
1 parent 46a4126 commit 60951fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/difflib.py

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

10551055
if pat is None:
1056-
return line.strip() in '#'
1056+
return line.strip() in {'', '#'}
10571057
return pat(line) is not None
10581058

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

0 commit comments

Comments
 (0)