quiet the HTMLParser debug info - closes #517
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Fri, 9 Nov 2012 11:32:07 +0000 (12:32 +0100)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Fri, 9 Nov 2012 11:32:07 +0000 (12:32 +0100)
youtube_dl/utils.py

index a64937b4c12077fef92c95d0ddd36e30de0e8917..56d0461456fe7e96a259100d7e60bdf2f1dc87a2 100644 (file)
@@ -83,7 +83,7 @@ class IDParser(HTMLParser.HTMLParser):
                HTMLParser.HTMLParser.__init__(self)
 
        def error(self, message):
-               print >> sys.stderr, self.getpos()
+               #print >> sys.stderr, self.getpos()
                if self.error_count > 10 or self.started:
                        raise HTMLParser.HTMLParseError(message, self.getpos())
                self.rawdata = '\n'.join(self.html.split('\n')[self.getpos()[0]:]) # skip one line