Fix for ClientForm in mechanize >=0.2

refs #362
This commit is contained in:
Laurent Bachelier 2010-08-10 18:15:22 +02:00
commit 05b9bbdb2e
5 changed files with 30 additions and 14 deletions

View file

@ -19,10 +19,8 @@
import mechanize
import urllib
import urllib2
try:
from mechanize import ControlNotFoundError
except ImportError:
from ClientForm import ControlNotFoundError
from weboob.tools.mech import ClientForm
ControlNotFoundError = ClientForm.ControlNotFoundError
import re
import time
from logging import warning, debug