weboob-devel/weboob
Florent 0e3e32adb1 Do not import exceptions of requests / load browser if needed
The import process of requests is very expensive: it imports all urllib,
and a lot of stuff. It is a problem on slow hardware, for applications
not running browser2 (example: weboob-config update).

This patch has two mains parts:
 * introduces load_browser to load a browser only if needed (a lot of repository
   processing does not need a browser)
 * Do not import exceptions of requests, but use Weboob internals one

Before: 6455 open/190 modules imported
After: 3997 open/112 modules
2014-07-09 10:54:33 +02:00
..
applications rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
capabilities rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
core Do not import exceptions of requests / load browser if needed 2014-07-09 10:54:33 +02:00
tools Do not import lxml in headers of page.py 2014-07-09 10:23:24 +02:00
__init__.py PEP8 style fixes and other small style fixes 2012-03-14 04:51:46 +01:00