diff options
author | Mike Sinkovsky <msink@permonline.ru> | 2017-01-17 18:13:03 +0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-18 21:22:47 +0200 |
commit | 969be1f6797551a5e9be1a5ea2133fb1c59220d7 (patch) | |
tree | 2f9b596fba0c740c154b52f99368bdd4ad48c2b7 /mesonbuild/dependencies.py | |
parent | 1d177fb1271b4198aa1ff652666a4244ec23a1c6 (diff) | |
download | meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.zip meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.gz meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.bz2 |
cleanup: Remove redundant parentheses
Diffstat (limited to 'mesonbuild/dependencies.py')
-rw-r--r-- | mesonbuild/dependencies.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py index 478722d..f6db323 100644 --- a/mesonbuild/dependencies.py +++ b/mesonbuild/dependencies.py @@ -33,7 +33,7 @@ class DependencyException(MesonException): def __init__(self, *args, **kwargs): MesonException.__init__(self, *args, **kwargs) -class Dependency(): +class Dependency: def __init__(self, type_name='unknown'): self.name = "null" self.is_found = False @@ -189,7 +189,7 @@ class PkgConfigDependency(Dependency): def _call_pkgbin(self, args): p, out = Popen_safe([self.pkgbin] + args, env=os.environ)[0:2] - return (p.returncode, out.strip()) + return p.returncode, out.strip() def _set_cargs(self): ret, out = self._call_pkgbin(['--cflags', self.name]) @@ -392,7 +392,7 @@ class WxDependency(Dependency): def found(self): return self.is_found -class ExternalProgram(): +class ExternalProgram: windows_exts = ('exe', 'com', 'bat') def __init__(self, name, fullpath=None, silent=False, search_dir=None): |