diff options
author | Leonard Richardson <leonardr@segfault.org> | 2020-05-17 13:58:15 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2020-05-17 13:58:15 -0400 |
commit | 8ddf0953746cb25cd900038067ee5a469940e972 (patch) | |
tree | 851985846258032d58df53192514a87a3aeda014 /bs4/builder/_htmlparser.py | |
parent | 56d128279162d3a5696cfba767891c843393e372 (diff) |
Switch entirely to Python 3-style print statements, even in Python 2.
Diffstat (limited to 'bs4/builder/_htmlparser.py')
-rw-r--r-- | bs4/builder/_htmlparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/builder/_htmlparser.py b/bs4/builder/_htmlparser.py index 1d96a66..1cb84ff 100644 --- a/bs4/builder/_htmlparser.py +++ b/bs4/builder/_htmlparser.py @@ -146,7 +146,7 @@ class BeautifulSoupHTMLParser(HTMLParser): else: attr_dict[key] = value attrvalue = '""' - #print "START", name + #print("START", name) sourceline, sourcepos = self.getpos() tag = self.soup.handle_starttag( name, None, None, attr_dict, sourceline=sourceline, @@ -176,12 +176,12 @@ class BeautifulSoupHTMLParser(HTMLParser): be the closing portion of an empty-element tag, e.g. '<tag></tag>'. """ - #print "END", name + #print("END", name) if check_already_closed and name in self.already_closed_empty_element: # This is a redundant end tag for an empty-element tag. # We've already called handle_endtag() for it, so just # check it off the list. - # print "ALREADY CLOSED", name + # print("ALREADY CLOSED", name) self.already_closed_empty_element.remove(name) else: self.soup.handle_endtag(name) |