Commit graph

30 commits

Author SHA1 Message Date
Bezleputh
d73c6b2245 Add a " LIMIT " keyword in conditions 2014-10-08 13:05:40 +02:00
Laurent Bachelier
74a4ef6723 Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w

With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00
Florent
a64c9f2edb Rename BaseApplication to Application 2014-09-26 10:18:12 +02:00
Laurent Bachelier
36a4b78e67 make_man: Tell that it was generated automatically
So people don't waste time altering them, but alter the source instead.
2014-06-20 17:58:51 +02:00
Florent
e91d05b207 Espace more "-" in man pages 2014-02-19 14:57:24 +01:00
Florent
c045c34379 Revert "Trailing whitespace"
Python does not like """"

This reverts commit ff34cc7b66.
2014-01-08 23:38:27 +01:00
Florent
ff34cc7b66 Trailing whitespace 2014-01-08 23:29:55 +01:00
Laurent Bachelier
513567b6f8 Fix some typos and better wording on conditions documentation 2013-12-16 16:46:54 +01:00
Florent
920e8edc44 Add documentation on conditions 2013-12-16 16:40:14 +01:00
Florent
6d82bed915 Remove tests for pyflakes 2013-08-12 17:07:50 +02:00
Laurent Bachelier
57d38783b6 pyflakes.sh: Explicit errors 2013-08-12 15:32:09 +02:00
Florent
5dc8438366 Revert "Fix encoding error in make_man"
This reverts commit fc9a503f6c.
It breaks manpage
2013-08-02 23:36:18 +02:00
Florent
fc9a503f6c Fix encoding error in make_man 2013-08-02 23:20:45 +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
fb1b8bc5b8 Remove some from __future__, forbid 2.5 in setup 2013-07-27 14:58:19 +02:00
Laurent Bachelier
89f4d7e905 Tell groff manpages are utf-8
This should fix the display of manpages with accents (mainly boobank).
2013-03-09 15:14:46 +01:00
Laurent Bachelier
ae06ae3384 Add missing "whatis entry" to man pages
This is recommended by Debian.
closes #618
2013-02-13 00:38:33 +01: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
6b8a163158 change paths of related files to XDG specs 2012-03-03 23:19:38 +01:00
Romain Bignon
2476cbfa1b fix application URL 2012-03-03 23:00:45 +01:00
Romain Bignon
04183000bc do not print supported websites if empty 2012-02-06 20:02:09 +01:00
Romain Bignon
1288af8e93 sort commands by name 2011-05-08 17:27:00 +02:00
Laurent Bachelier
8075d538f0 Better messages and return codes in applications
Use stderr and return codes >0 when it makes sense.
Loose return code conventions:
* 1 for generic errors
* 2 for user input errors
* 3 for remote errors (not found, etc.)
* 4 for not implemented
2011-05-04 00:44:43 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Christophe Benz
ca658e3946 python2.5 compatibility. 2011-04-04 21:51:51 +02:00
Romain Bignon
55a1574df5 display application version 2010-12-09 13:50:18 +01:00
Romain Bignon
7b5e5f3289 display supported websites (closes #427) 2010-12-09 12:05:41 +01:00
Christophe Benz
3dd50f363d remove unnecessary brackets 2010-12-08 18:10:42 +01:00
Romain Bignon
8f39c0618c display usage, description and commands list in a proper way, display copyright and files list (refs #427) 2010-12-08 17:55:27 +01:00
Laurent Bachelier
f296b6e0e3 Horrible tool to create manpages
Far from enough to replace the current manpages as of now, so they are
put in the man2/ directory.
2010-11-26 00:47:46 +01:00