Laurent Bachelier
f4c17cdc9d
pep8: Fix E303 too many blank lines
2014-10-11 02:15:28 +02:00
Laurent Bachelier
bb050fee00
Dump dictionaries in a more human-readable format
2014-08-26 18:05:25 +02:00
Laurent Bachelier
3ffee483b0
yaml: Represent weboob date[time] objects as timestamps
...
Unfortunately, I couldn't make timestamps always load
as our date[time] objects, at least with CLoader.
2014-05-26 20:07:41 +02:00
Laurent Bachelier
28d16c01eb
Allow a default equal to None
...
get(..., default=None) will now be able to work.
2014-05-16 11:44:29 +02:00
Laurent Bachelier
fd5901b00e
Use NamedTemporaryFile(delete=False) instead of mkstemp
2013-07-27 15:42:23 +02:00
Romain Bignon
c0740e695d
remove useless import of with_statement (we do not support anymore python2.5)
...
refs #806
2013-07-27 14:38:18 +02: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
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
Romain Bignon
b157e92d5b
use decimal.Decimal instead of float to store amounts of money
2012-03-29 16:31:18 +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
Laurent Bachelier
64bf35a7e9
Use libyaml for faster loading and saving
...
if installed
2012-03-06 19:11:02 +01:00
Romain Bignon
1a09a5d43d
get(): do not store default value in tree if key is not found
2012-02-19 12:45:57 +01:00
Romain Bignon
7e2bb91b3b
change license to AGPLv3+
2011-04-08 12:48:07 +02:00
Christophe Benz
f924c0aa92
add debug message
2010-11-19 11:22:02 +01:00
Romain Bignon
d42ac3ea0d
store 'ROOT' special section in a constant
2010-11-14 21:47:43 +01:00
Romain Bignon
9a5b726013
use OrderedDict and fix parsing of path-like in INI files
2010-11-14 14:11:38 +01:00
Laurent Bachelier
e5d4047016
Use basestring instead of str and unicode
2010-11-12 18:52:50 +01:00
Romain Bignon
ebe29a061f
new method 'delete' in storage and config
2010-11-11 01:11:00 +01:00
Christophe Benz
cd08025ee2
bugfix with recursive func
2010-08-02 16:44:41 +02:00
Christophe Benz
ae4b7cd23b
s/frontend/application/
2010-07-11 02:13:45 +02:00
Romain Bignon
46d00b4c79
more portable solution of saving in a temp file
2010-07-01 11:55:51 +02:00
Romain Bignon
907973a041
firstly write config in a temporary file to avoid corruption
2010-07-01 11:34:01 +02:00
Christophe Benz
470f2a9fe2
use real comments for licence header
2010-06-22 16:27:33 +02:00
Christophe Benz
183f16eeed
code clean/enhance
2010-04-20 18:59:51 +02:00
Christophe Benz
b81e681131
introduce ini config for frontends, by default
2010-04-19 19:10:36 +02:00
Christophe Benz
cebcead318
add __all__ variable to many modules
2010-04-16 18:11:52 +02:00
Christophe Benz
239c4ddeb3
save default frontend config
2010-04-08 16:07:31 +02:00
Romain Bignon
82e9108aa8
fix yaml config loader
2010-04-03 18:31:17 +02:00
Romain Bignon
2cb52beba5
new frontend configuration system
2010-04-01 20:06:49 +02:00