Add some parentheses around print for #180

This commit is contained in:
Philipp Hagemeister 2012-11-26 04:05:54 +01:00
parent 6b50761222
commit 51937c0869
4 changed files with 17 additions and 20 deletions

View file

@ -83,7 +83,6 @@ class IDParser(HTMLParser.HTMLParser):
HTMLParser.HTMLParser.__init__(self)
def error(self, message):
#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