diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-02 17:40:20 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-02 18:03:21 -0400 |
commit | 098ac5e0a626e135058df9269e16a35266892ce4 (patch) | |
tree | 8387646943b278faa5556d946b0432dc69eed2c6 | |
parent | 052066797336f7d17c56ce625c13887facfbdd60 (diff) | |
download | meson-098ac5e0a626e135058df9269e16a35266892ce4.zip meson-098ac5e0a626e135058df9269e16a35266892ce4.tar.gz meson-098ac5e0a626e135058df9269e16a35266892ce4.tar.bz2 |
genvslite: fix badly overflowing line lengths
Function comments that overflow the screen width by coming after code,
instead of on their own line, are hard to read. Same applies to message
strings that are all on one line. Fix by reflowing them.
Post-facto application of issues that were caught during post-merge
review, after the genvslite PR was merged without a full review.
-rw-r--r-- | mesonbuild/coredata.py | 4 | ||||
-rw-r--r-- | mesonbuild/msetup.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 90891a9..0904187 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -82,7 +82,9 @@ _T = T.TypeVar('_T') def get_genvs_default_buildtype_list() -> list: - return buildtypelist[1:-2] # just debug, debugoptimized, and release for now but this should probably be configurable through some extra option, alongside --genvslite. + # just debug, debugoptimized, and release for now + # but this should probably be configurable through some extra option, alongside --genvslite. + return buildtypelist[1:-2] class MesonVersionMismatchException(MesonException): diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py index dc6d97e..ecf8b1e 100644 --- a/mesonbuild/msetup.py +++ b/mesonbuild/msetup.py @@ -330,7 +330,9 @@ def run_genvslite_setup(options: argparse.Namespace) -> None: k_backend = mesonlib.OptionKey('backend') if k_backend in options.cmd_line_options.keys(): if options.cmd_line_options[k_backend] != 'ninja': - raise MesonException('Explicitly specifying a backend option with \'genvslite\' is not necessary (the ninja backend is always used) but specifying a non-ninja backend conflicts with a \'genvslite\' setup') + raise MesonException('Explicitly specifying a backend option with \'genvslite\' is not necessary ' + '(the ninja backend is always used) but specifying a non-ninja backend ' + 'conflicts with a \'genvslite\' setup') else: options.cmd_line_options[k_backend] = 'ninja' buildtypes_list = coredata.get_genvs_default_buildtype_list() |