Convert all print statements in the docs.
diff --git a/Doc/library/htmlparser.rst b/Doc/library/htmlparser.rst
index 5f481d8..5cfe04e 100644
--- a/Doc/library/htmlparser.rst
+++ b/Doc/library/htmlparser.rst
@@ -171,8 +171,8 @@
    class MyHTMLParser(HTMLParser):
 
        def handle_starttag(self, tag, attrs):
-           print "Encountered the beginning of a %s tag" % tag
+           print("Encountered the beginning of a %s tag" % tag)
 
        def handle_endtag(self, tag):
-           print "Encountered the end of a %s tag" % tag
+           print("Encountered the end of a %s tag" % tag)