projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc3914
)
quiet the HTMLParser debug info - closes #517
author
Filippo Valsorda
<filippo.valsorda@gmail.com>
Fri, 9 Nov 2012 11:32:07 +0000
(12:32 +0100)
committer
Filippo Valsorda
<filippo.valsorda@gmail.com>
Fri, 9 Nov 2012 11:32:07 +0000
(12:32 +0100)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index a64937b4c12077fef92c95d0ddd36e30de0e8917..56d0461456fe7e96a259100d7e60bdf2f1dc87a2 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-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