Skip to content
Prev Previous commit
Next Next commit
Update difflib.py
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
donbarbos and AA-Turner authored Feb 16, 2025
commit 352b4bccc1cf5fa83401c00a115eb2c7e6f47393
2 changes: 1 addition & 1 deletion Lib/difflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def IS_LINE_JUNK(line, pat=None):
False
"""

return line.strip() == "" or line.lstrip().rstrip() == "#"
return line.strip() in ('', '#')

def IS_CHARACTER_JUNK(ch, ws=" \t"):
r"""
Expand Down
Loading