[gnome-builder] meson: Minor style cleanup
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] meson: Minor style cleanup
- Date: Fri, 4 Aug 2017 21:51:17 +0000 (UTC)
commit 2e5621a3c70d637cda880fa64f722ea36a0c5ff9
Author: Patrick Griffis <tingping tingping se>
Date: Fri Aug 4 17:50:52 2017 -0400
meson: Minor style cleanup
plugins/meson/meson_plugin/__init__.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/meson/meson_plugin/__init__.py b/plugins/meson/meson_plugin/__init__.py
index 6952cc7..7191e3b 100644
--- a/plugins/meson/meson_plugin/__init__.py
+++ b/plugins/meson/meson_plugin/__init__.py
@@ -17,7 +17,6 @@
from os import path
import threading
-import shutil
import json
import gi
@@ -32,7 +31,8 @@ from gi.repository import (
_ = Ide.gettext
-_NINJA_NAMES = [ 'ninja-build', 'ninja' ]
+_NINJA_NAMES = ['ninja-build', 'ninja']
+
def execInRuntime(runtime, *args, **kwargs):
directory = kwargs.get('directory', None)
@@ -44,6 +44,7 @@ def execInRuntime(runtime, *args, **kwargs):
_, stdout, stderr = proc.communicate_utf8(None, None)
return stdout
+
def extract_flags(command: str, builddir: str):
flags = GLib.shell_parse_argv(command)[1] # Raises on failure
wanted_flags = []
@@ -58,6 +59,7 @@ def extract_flags(command: str, builddir: str):
wanted_flags += [flag, flags[i + 1]]
return wanted_flags
+
class MesonBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
project_file = GObject.Property(type=Gio.File)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]