mconf: Make it pep8 compliant

This commit is contained in:
Sander Sweers 2018-03-04 19:56:53 +01:00
parent 9bafde953a
commit 3a0ab6a2bc
1 changed files with 7 additions and 2 deletions

View File

@ -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:]))