improve the dummy script

This commit is contained in:
Romain Bignon 2010-04-01 20:25:32 +02:00
commit 3d0c80c323
5 changed files with 24 additions and 11 deletions

View file

@ -37,7 +37,7 @@ else:
return HTMLParser.parse(data, encoding='iso-8859-1')
import re
import time
from logging import warning, error
from logging import warning, error, debug
from copy import copy
try:
@ -220,7 +220,7 @@ class Browser(mechanize.Browser):
warning('Ho my fucking god, there isn\'t any page named %s' % result.geturl())
return
print '[%s] Gone on %s' % (self.username, result.geturl())
debug('[%s] Gone on %s' % (self.username, result.geturl()))
self.last_update = time.time()
document = self.__parser.parse(result)