summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-09-28 00:42:25 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2017-09-28 01:07:04 +0200
commit061757589578d6e78e444c7ab6324a159ace7600 (patch)
treedc543e19298cf258ecec71521be940d0bafcf3c3 /setup.py
parent539fa5e9a4f83ed543413f556231fd3a82bfb02c (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