diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-10-13 11:02:41 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-11-13 09:00:35 -0800 |
commit | 5c74cccbb906ab92a75ae31262634a3e8b3f9dfa (patch) | |
tree | 44989650d5fb6e46b323b4bc8d0bed29323ce5a9 /mesonbuild/build.py | |
parent | 505f824cf177752c01b6193ec83f12e51035e844 (diff) | |
download | meson-5c74cccbb906ab92a75ae31262634a3e8b3f9dfa.zip meson-5c74cccbb906ab92a75ae31262634a3e8b3f9dfa.tar.gz meson-5c74cccbb906ab92a75ae31262634a3e8b3f9dfa.tar.bz2 |
run_unittests: use textwrap.dedent
So that editors that can fold code (vim, vscode, etc) can correctly fold
functions, instead of getting confused by code that doesn't follow the
current indention. Also, it makes the code easier to read.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 78292f2..36d4e19 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1359,11 +1359,12 @@ You probably should put it in link_with instead.''') for link_target in self.link_targets: if isinstance(link_target, SharedModule): if self.environment.machines[self.for_machine].is_darwin(): - raise MesonException('''target links against shared modules. -This is not permitted on OSX''') + raise MesonException( + 'target links against shared modules. This is not permitted on OSX') else: - mlog.warning('''target links against shared modules. This is not -recommended as it is not supported on some platforms''') + mlog.warning('target links against shared modules. This ' + 'is not recommended as it is not supported on some ' + 'platforms') return class Generator: |