diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-02-11 20:19:27 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-30 14:13:12 -0400 |
| commit | 28ab1ce39a7889c681cf6874f9062baa97b1f5f7 (patch) | |
| tree | a04d560e38e414308ae3ea713233490c8301dab8 /unittests/baseplatformtests.py | |
| parent | a59231ff4a30f686306662e1298c69fd2459dec8 (diff) | |
| download | meson-28ab1ce39a7889c681cf6874f9062baa97b1f5f7.tar.gz | |
compilers: straighten out CompileResult according to how it is actually used
In particular, it is only ever constructed once, and all but two of its
arguments are always passed. So there's no reason or valid justification
to initialize them as None or pretend that you have to check them for
None values. Nor in fact does the command list need to be a
default_factory.
There are also two instance attributes which it is never instantiated
with, but which are tracked after the fact. Don't add this to the
signature for `__init__` as that is misleading.
Diffstat (limited to 'unittests/baseplatformtests.py')
0 files changed, 0 insertions, 0 deletions
