parent
46a56f5d87
commit
05b9bbdb2e
5 changed files with 30 additions and 14 deletions
|
|
@ -16,7 +16,7 @@
|
|||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
import ClientForm
|
||||
from weboob.tools.mech import ClientForm
|
||||
import sys
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -15,10 +15,8 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
try:
|
||||
from mechanize import ControlNotFoundError
|
||||
except ImportError:
|
||||
from ClientForm import ControlNotFoundError
|
||||
from weboob.tools.mech import ClientForm
|
||||
ControlNotFoundError = ClientForm.ControlNotFoundError
|
||||
|
||||
from mechanize import FormNotFoundError
|
||||
from weboob.tools.browser import BasePage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue