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
Laurent Bachelier
2c6d5d4e70
Fix previous commit on domain checking of id2url
...
* the condition on empty self.DOMAIN didn't work
* it introduced a regression as subdomains were accepted by the old code
2011-04-22 10:37:30 +02:00
Laurent Bachelier
4d8030b8dd
Add check_url decorator, remove check_domain
...
check_domain was not used anywhere and was bugged (the domain argument
was ignored in favor of self.DOMAIN).
The check_url decorator checks if the URL can be handled, if not it will
return None. The idea is to avoid making unnecessary requests.
2011-04-21 22:18:17 +02:00
Laurent Bachelier
619b97669d
Enhance domain checking of url2id
...
* Do not check for the domain if it is empty in the Browser class
* Better check of the domain (actually parse the URL domain)
* Add docstring
2011-04-21 20:15:18 +02:00
Laurent Bachelier
31b4892c48
Add support for https in the id2url decorator
2011-04-21 11:03:01 +02:00
Romain Bignon
7e2bb91b3b
change license to AGPLv3+
2011-04-08 12:48:07 +02:00
Christophe Benz
470f2a9fe2
use real comments for licence header
2010-06-22 16:27:33 +02:00
Christophe Benz
e2544a157f
remove dead code
2010-06-17 17:04:19 +02:00
Christophe Benz
15d253133b
stricter id2url decorator
2010-05-20 16:29:19 +02:00
Christophe Benz
0de0f2a768
rewrite video decorators to be in browser
2010-05-20 11:49:05 +02:00