diff options
author | Martin Dørum <dorum@noisolation.com> | 2023-06-19 16:55:16 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-06-20 08:28:47 -0400 |
commit | e869a09bc2e0fbd988fdc19014b8b0ad7e4b97c9 (patch) | |
tree | 88f235010db650cef6d475225acf7e7d157c6c2c /mesonbuild/minit.py | |
parent | 8c766f5b5bd33c93deabff41e2152d7f7e368492 (diff) | |
download | meson-e869a09bc2e0fbd988fdc19014b8b0ad7e4b97c9.zip meson-e869a09bc2e0fbd988fdc19014b8b0ad7e4b97c9.tar.gz meson-e869a09bc2e0fbd988fdc19014b8b0ad7e4b97c9.tar.bz2 |
add str.splitlines method
The new splitlines method on str is intended to replace usage of
fs.read('whatever').strip().split('\n').
The problem with the .strip().split() approach is that it doesn't have a
way to represent empty lists (an empty string becomes a list with one
empty string, not an empty list), and it doesn't handle Windows-style
line endings.
Diffstat (limited to 'mesonbuild/minit.py')
0 files changed, 0 insertions, 0 deletions