Remove import of browser1 in BaseApplication

This commit is contained in:
Florent 2014-07-08 17:15:39 +02:00
commit f7cd0abc3b
3 changed files with 8 additions and 8 deletions

View file

@ -352,7 +352,7 @@ class BaseApplication(object):
if not self.options.debug and not self.options.save_responses: if not self.options.debug and not self.options.save_responses:
warnings.simplefilter('ignore', category=ConversionWarning) warnings.simplefilter('ignore', category=ConversionWarning)
try: try:
from weboob.tools.browser.browser import FormFieldConversionWarning from weboob.tools.exceptions import FormFieldConversionWarning
except ImportError: except ImportError:
pass pass
else: else:

View file

@ -50,7 +50,7 @@ from contextlib import closing
from gzip import GzipFile from gzip import GzipFile
import warnings import warnings
from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserPasswordExpired, BrowserForbidden, BrowserBanned, BrowserHTTPNotFound, BrowserHTTPError from weboob.tools.exceptions import BrowserUnavailable, BrowserIncorrectPassword, BrowserPasswordExpired, BrowserForbidden, BrowserBanned, BrowserHTTPNotFound, BrowserHTTPError, FormFieldConversionWarning
from weboob.tools.decorators import retry from weboob.tools.decorators import retry
from weboob.tools.log import getLogger from weboob.tools.log import getLogger
from weboob.tools.mech import ClientForm from weboob.tools.mech import ClientForm
@ -100,12 +100,6 @@ class BrokenPageError(Exception):
pass pass
class FormFieldConversionWarning(UserWarning):
"""
A value has been set to a form's field and has been implicitly converted.
"""
class BasePage(object): class BasePage(object):
""" """
Base page Base page

View file

@ -48,3 +48,9 @@ class BrowserHTTPError(BrowserUnavailable):
class ParseError(Exception): class ParseError(Exception):
pass pass
class FormFieldConversionWarning(UserWarning):
"""
A value has been set to a form's field and has been implicitly converted.
"""