aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonmain.py
diff options
context:
space:
mode:
authorMike Sinkovsky <msink@permonline.ru>2017-01-17 18:13:03 +0500
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-18 21:22:47 +0200
commit969be1f6797551a5e9be1a5ea2133fb1c59220d7 (patch)
tree2f9b596fba0c740c154b52f99368bdd4ad48c2b7 /mesonbuild/mesonmain.py
parent1d177fb1271b4198aa1ff652666a4244ec23a1c6 (diff)
downloadmeson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.zip
meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.gz
meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.bz2
cleanup: Remove redundant parentheses
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r--mesonbuild/mesonmain.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py
index 23501f8..37b8055 100644
--- a/mesonbuild/mesonmain.py
+++ b/mesonbuild/mesonmain.py
@@ -69,7 +69,7 @@ parser.add_argument('-v', '--version', action='version',
version=coredata.version)
parser.add_argument('directories', nargs='*')
-class MesonApp():
+class MesonApp:
def __init__(self, dir1, dir2, script_launcher, handshake, options, original_cmd_line_args):
(self.source_dir, self.build_dir) = self.validate_dirs(dir1, dir2, handshake)
@@ -106,9 +106,9 @@ class MesonApp():
if self.has_build_file(ndir1):
if self.has_build_file(ndir2):
raise RuntimeError('Both directories contain a build file %s.' % environment.build_filename)
- return (ndir1, ndir2)
+ return ndir1, ndir2
if self.has_build_file(ndir2):
- return (ndir2, ndir1)
+ return ndir2, ndir1
raise RuntimeError('Neither directory contains a build file %s.' % environment.build_filename)
def validate_dirs(self, dir1, dir2, handshake):
@@ -126,7 +126,7 @@ If you want to change option values, use the mesonconf tool instead.'''
else:
if handshake:
raise RuntimeError('Something went terribly wrong. Please file a bug.')
- return (src_dir, build_dir)
+ return src_dir, build_dir
def check_pkgconfig_envvar(self, env):
curvar = os.environ.get('PKG_CONFIG_PATH', '')