diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-02-27 14:23:46 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-02-28 14:53:06 +0100 |
| commit | db633015a4d7b0ba1e882f665e191f350932b2af (patch) | |
| tree | a4333b4ccb758eaf9b5e78a30d980344513c3d86 /examples/oldconfig.py | |
| parent | 3bb590dc48f493b81775b377299823a5a314e01f (diff) | |
Return "" for unwritten symbols in Symbol.config_string
The previous return value was None.
Returning "" makes write_config() neater and feels a bit more Pythonic.
It might simplify the implementation of some planned features as well.
This is a small API break, so the major version will be bumped to 4 in
the next release.
Only code that explicitly tests Symbol.config_string against None will
be affected: 'if sym.config_string is None:' will break, but not
'if not sym.config_string:'.
Diffstat (limited to 'examples/oldconfig.py')
0 files changed, 0 insertions, 0 deletions
