Skip to content

Commit

Permalink
Update script to work with python3.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreydwalter committed Nov 29, 2021
1 parent b69d787 commit 017397c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/html2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def name2cp(k):
def onlywhite(line):
"""Return true if the line does only consist of whitespace characters."""
for c in line:
if c is not ' ' and c is not ' ':
return c is ' '
if c != ' ' and c != ' ':
return c == ' '
return line

def hn(tag):
Expand Down

0 comments on commit 017397c

Please sign in to comment.