Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | main: allow -c to be used multiple times | Anton Khirnov | 2023-03-16 |
| | | | | Merge values from multiple files. | ||
* | settings/utils: move resolve_att to the only place where it's used | Anton Khirnov | 2023-03-07 |
| | |||
* | Cosmetics, clean up imports | Anton Khirnov | 2021-02-10 |
| | |||
* | Remove old __future__ imports | Lucas Hoffmann | 2018-06-19 |
| | | | | They are not needed for python >= 3.0. | ||
* | Log unknown settings in configuration and theme files. | Julian Mehne | 2018-01-08 |
| | |||
* | Give more context if reading of config file fails. | Julian Mehne | 2017-12-06 |
| | |||
* | pep8 fixes | Patrick Totzke | 2017-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 Baker | 2017-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_config | Lucas Hoffmann | 2017-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 Hoffmann | 2017-01-18 |
| | |||
* | Replace mutable keyword arguments | Dylan Baker | 2016-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 syntax | Lucas Hoffmann | 2016-12-09 |
| | |||
* | Clean up imports | Lucas Hoffmann | 2016-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 exception | Johannes 'josch' Schauer | 2016-01-31 |
| | |||
* | pep8&pyflakes fixes | Patrick Totzke | 2013-07-07 |
| | | | | mostly automatically fixed | ||
* | cleanup: pep8/pyflakes fixes | Patrick Totzke | 2012-09-01 |
| | |||
* | more precise error handling for config parsing | Patrick Totzke | 2012-08-10 |
| | |||
* | do not write default config if missing | Patrick Totzke | 2012-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 errors | Patrick Totzke | 2012-07-21 |
| | |||
* | pep8 and pyflakes fixes | Patrick Totzke | 2012-07-21 |
| | |||
* | fix issue with overwriting AttrSpecs | Patrick Totzke | 2012-07-21 |
| | |||
* | better validation error reports | Patrick Totzke | 2012-07-21 |
| | |||
* | outsource resolve_att settings util | Patrick Totzke | 2012-07-18 |
| | |||
* | settings: propagate more failure info | Patrick Totzke | 2012-07-15 |
| | |||
* | add copyright statements to all source files | Patrick Totzke | 2012-06-14 |
| | | | | cf issue #472 | ||
* | forgot to add missing settings.utils.py | Patrick Totzke | 2012-03-11 |