diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-28 00:42:25 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-28 01:07:04 +0200 |
| commit | 061757589578d6e78e444c7ab6324a159ace7600 (patch) | |
| tree | dc543e19298cf258ecec71521be940d0bafcf3c3 /setup.py | |
| parent | 539fa5e9a4f83ed543413f556231fd3a82bfb02c (diff) | |
Refactor and optimize .config generation
- Use the nifty writelines() function, which I had completely missed.
Saves creating a large temporary string for each .config (though it's
probably not a big deal). Since writelines() doesn't add any
newlines, tweak the string literals to add them.
- Get rid of _make_block_conf(). This helper made more sense in ancient
versions where there was a separate _Block class.
- Rename _make_conf() to _add_config_strings() to be a bit more
explicit.
- Also rename the 'append_fn' parameter to 'add_fn'.
- Misc. minor nits.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions
