Commit graph

8 commits

Author SHA1 Message Date
Laurent Bachelier
ba1bef7062 retry: Avoid crashing on UnicodeDecodeError 2015-09-10 15:36:49 +02:00
Laurent Bachelier
a6ad7e83ff Use newer form of catching exceptions
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +02:00
Laurent Bachelier
a0abba9810 Allow overriding delay and tries in decorated function arguments 2013-05-14 10:39:03 +02:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Juke
87bf1f0d58 PEP 8 2011-02-11 14:15:38 +01:00
Christophe Benz
470f2a9fe2 use real comments for licence header 2010-06-22 16:27:33 +02:00
Christophe Benz
09e2e74d34 add decorator to retry failed requests 2010-05-16 17:42:39 +02:00