From 3a0ab6a2bc6c70a88673b5f7016daf171759c1da Mon Sep 17 00:00:00 2001 From: Sander Sweers Date: Sun, 4 Mar 2018 19:56:53 +0100 Subject: [PATCH] mconf: Make it pep8 compliant --- mesonbuild/mconf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 494d1bd44..db109b77d 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -12,9 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys, os +import os +import sys import argparse -from . import coredata, mesonlib, build +from . import (coredata, mesonlib, build) parser = argparse.ArgumentParser(prog='meson configure') @@ -24,9 +25,11 @@ parser.add_argument('directory', nargs='*') parser.add_argument('--clearcache', action='store_true', default=False, help='Clear cached state (e.g. found dependencies)') + class ConfException(mesonlib.MesonException): pass + class Conf: def __init__(self, build_dir): self.build_dir = build_dir @@ -218,6 +221,7 @@ class Conf: 'choices': coredata.get_builtin_option_choices(key)}) self.print_aligned(tarr) + def run(args): args = mesonlib.expand_arguments(args) if not args: @@ -250,5 +254,6 @@ def run(args): return 1 return 0 + if __name__ == '__main__': sys.exit(run(sys.argv[1:]))