Commit graph

20 commits

Author SHA1 Message Date
Laurent Bachelier
21e8f82fd7 pep8: Use "X not in Y" instead of "not X in Y"
flake8 --select E713, semi-manual fixing
2014-10-11 01:27:24 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Florent
444d36eee8 Rename BasePage to Page 2014-09-26 10:18:12 +02:00
Romain Bignon
c08c2df44d fix parsing of torrent titles 2014-09-17 10:20:41 +02:00
Laurent Bachelier
3da02fde24 Remove useless __all__ in modules
They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.

The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
2014-09-09 19:00:02 +02:00
Florent
1f17d9f265 Fix title getter (TorrentsPage and TorrentPage) 2014-05-12 16:36:10 +02:00
Laurent Bachelier
c193cae3b9 No need to support deprecated cgi module 2013-07-27 15:19:58 +02:00
Laurent Bachelier
2822006104 kickass: Use https 2013-03-29 20:20:36 +01:00
Laurent Bachelier
be3e19a203 try/except import are now handled by flake8 2.0+ / pyflakes 0.6+ 2013-03-19 19:10:20 +01:00
Julien Veyssier
5d923bc73b autopep8 with 120 chars line length on my modules 2013-03-18 11:16:05 +01:00
Laurent Bachelier
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00
Julien Veyssier
b907c8b266 btmon speeded up, all ICapTorrent backends clarified and fillobj cleaned 2013-03-15 18:20:54 +01:00
Julien Veyssier
e8a788cb00 [weboorrents] cleaning get_object 2013-03-13 01:16:41 +01:00
Julien Veyssier
130d304a03 authors update 2013-02-28 03:21:57 +01:00
Julien Veyssier
d05b8f959a [kickass] Fix download URL and magnet support in all iter_torrents 2013-02-28 00:46:40 +01:00
Julien Veyssier
8c6c430eea kickass url correction 2013-02-28 00:32:29 +01:00
Julien Veyssier
4c8d78e326 NotAvailable in attilasub and kickass 2013-02-28 00:26:33 +01:00
Laurent Bachelier
c4213c3c74 kickass: Fix download URL and support magnets 2013-02-28 00:00:57 +01:00
Laurent Bachelier
541d080c9d Use flake8 if available instead of pyflakes
With flake8, we can check for more issues and ignore those who are not
real issues.

This allowed me to find genuine errors in:
- modules/boursorama/pages/account_history.py
- modules/ing/pages/login.py
- weboob/tools/application/qt/qt.py
I left one in weboob/tools/browser/browser.py for the time being.

Some PEP8 fixes on other files.
2012-11-24 19:46:34 +01:00
Laurent Bachelier
67d776552f Make kickass code less crappy
This does not actually fix anything; the issue was that the page was
gzipped. However, since the code was not checking anything, it took me
some time to realize it. We now have at least one "BrokenPageError"
check.
2012-03-09 01:43:45 +01:00
Renamed from modules/kickass/pages/torrents.py (Browse further)