summaryrefslogtreecommitdiff
path: root/alot/settings/utils.py
Commit message (Collapse)AuthorAge
* main: allow -c to be used multiple timesAnton Khirnov2023-03-16
| | | | Merge values from multiple files.
* settings/utils: move resolve_att to the only place where it's usedAnton Khirnov2023-03-07
|
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* Log unknown settings in configuration and theme files.Julian Mehne2018-01-08
|
* Give more context if reading of config file fails.Julian Mehne2017-12-06
|
* pep8 fixesPatrick Totzke2017-09-01
| | | | | This mostly shortens lines down to <=79 chars and fixes some other small things I found using the pep8 tool.
* Replace Exception.message with str(Exception)Dylan Baker2017-08-19
| | | | | | In python3 Exception doesn't have a message attribute, the only way to get the string output is to call str() on the Exception. This also works in python 2.7, so go ahead and make that change.
* Extend docs for settings.utils.read_configLucas Hoffmann2017-06-06
| | | | | The argument is handed to ConfigObj directly and allowing lines of text to be passed here makes future tests much easier.
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* Replace mutable keyword argumentsDylan Baker2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | There are a number of cases of mutable keyword arguments (list and dict in this case). Mutable keyword arguments are rather dangerous, since any mutation of the default value is persistent, which will inevitably lead to bugs. For example, imagine this code: def func(def=[]): def.append('foo') return def >>> func() ['foo'] >>> func() ['foo', 'foo'] This is almost certainly not what was intended. This code generally uses the idiom of setting the default value to None, and then assigning with or `value = value or []` which will replace value with the empty list (or dict) when value is falsey, like None or another empty list.
* Fix except syntaxLucas Hoffmann2016-12-09
|
* Clean up importsLucas Hoffmann2016-12-09
| | | | | | - use relative imports if possible - group imports into standard library, third party, and alot modules - sort imports alphabetically
* alot/settings/utils.py: extend error message on IOError exceptionJohannes 'josch' Schauer2016-01-31
|
* pep8&pyflakes fixesPatrick Totzke2013-07-07
| | | | mostly automatically fixed
* cleanup: pep8/pyflakes fixesPatrick Totzke2012-09-01
|
* more precise error handling for config parsingPatrick Totzke2012-08-10
|
* do not write default config if missingPatrick Totzke2012-08-01
| | | | | | This has been done before to provide the default bindings, which are now read directly from defautls/default.bindings during startup.
* correctly report interpolation errorsPatrick Totzke2012-07-21
|
* pep8 and pyflakes fixesPatrick Totzke2012-07-21
|
* fix issue with overwriting AttrSpecsPatrick Totzke2012-07-21
|
* better validation error reportsPatrick Totzke2012-07-21
|
* outsource resolve_att settings utilPatrick Totzke2012-07-18
|
* settings: propagate more failure infoPatrick Totzke2012-07-15
|
* add copyright statements to all source filesPatrick Totzke2012-06-14
| | | | cf issue #472
* forgot to add missing settings.utils.pyPatrick Totzke2012-03-11