meson/mesonbuild/interpreter/primitives
Martin Dørum e869a09bc2 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.
2023-06-20 08:28:47 -04:00
..
__init__.py flake8: fix warnings for unused imports 2022-08-29 23:32:43 +03:00
array.py move a bunch of imports into TYPE_CHECKING blocks 2022-03-07 19:09:50 -05:00
boolean.py move various imports into TYPE_CHECKING blocks for neatness 2022-05-23 16:44:08 -04:00
dict.py move a bunch of imports into TYPE_CHECKING blocks 2022-03-07 19:09:50 -05:00
integer.py detect and warn on non-commutative int/bool operations 2023-06-14 23:12:09 -04:00
range.py treewide: add future annotations import 2023-02-01 17:01:30 -05:00
string.py add str.splitlines method 2023-06-20 08:28:47 -04:00