[issue15120] Different behavior of html.parser.HTMLParser

2012-06-21 Thread hansokumake
hansokumake added the comment: I'm sorry. It's my fault. I still use Python 3.2.2. -- status: open -> closed ___ Python tracker <http://bugs.pytho

[issue15120] Different behavior of html.parser.HTMLParser

2012-06-21 Thread hansokumake
New submission from hansokumake : I tried this example from the documentation: from html.parser import HTMLParser class MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs): print("Encountered a start tag:", tag) def handle_endtag(self, tag):