Commit db63301
committed
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:'.1 parent 3bb590d commit db63301
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
933 | | - | |
934 | | - | |
935 | | - | |
| 933 | + | |
936 | 934 | | |
937 | 935 | | |
938 | 936 | | |
| |||
2370 | 2368 | | |
2371 | 2369 | | |
2372 | 2370 | | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
2376 | 2374 | | |
2377 | 2375 | | |
2378 | 2376 | | |
| |||
2717 | 2715 | | |
2718 | 2716 | | |
2719 | 2717 | | |
2720 | | - | |
| 2718 | + | |
2721 | 2719 | | |
2722 | 2720 | | |
2723 | 2721 | | |
| |||
0 commit comments