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

@ -16,11 +16,8 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
try:
from mechanize import ControlNotFoundError
except ImportError:
from ClientForm import ControlNotFoundError
import ClientForm
from weboob.tools.mech import ClientForm
ControlNotFoundError = ClientForm.ControlNotFoundError
from .base import CragrBasePage