aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorchocolateboy <chocolate@cpan.org>2012-05-30 11:50:13 +0100
committerchocolateboy <chocolate@cpan.org>2012-05-30 11:50:13 +0100
commit6ab92c8b622ba4691bee8ad36da0614c1f892511 (patch)
tree894ab907249b6a40fdda0928dc6c4bfdf5eab3ff /youtube_dl/utils.py
parentf36cd076850faf4b2859a168fcb740dfccb9eed6 (diff)
don't corrupt stdout (-o -) in verbose mode
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index ae30da53e..2853ba50f 100644
--- 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 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