aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/rewriter.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-01-24 21:38:29 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-24 21:38:29 +0100
commitdbb94f122ddeb5a37ff2603acbcc701b996958bb (patch)
tree1db39b23ee0826a10683c3231014a8855555dea8 /mesonbuild/rewriter.py
parent4b3e21b8941fe53b85eb889734c34937438b0928 (diff)
downloadmeson-dbb94f122ddeb5a37ff2603acbcc701b996958bb.zip
meson-dbb94f122ddeb5a37ff2603acbcc701b996958bb.tar.gz
meson-dbb94f122ddeb5a37ff2603acbcc701b996958bb.tar.bz2
Fixed style issues
Diffstat (limited to 'mesonbuild/rewriter.py')
-rw-r--r--mesonbuild/rewriter.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py
index f66da33..277835c 100644
--- a/mesonbuild/rewriter.py
+++ b/mesonbuild/rewriter.py
@@ -130,9 +130,6 @@ class Rewriter:
return args
if cmd['operation'] == 'src_add':
- #################################
- ### Add sources to the target ###
- #################################
node = None
if target['sources']:
node = target['sources'][0]
@@ -159,10 +156,8 @@ class Rewriter:
# Mark the node as modified
if node not in self.modefied_nodes:
self.modefied_nodes += [node]
+
elif cmd['operation'] == 'src_rm':
- ######################################
- ### Remove sources from the target ###
- ######################################
# Helper to find the exact string node and its parent
def find_node(src):
for i in target['sources']:
@@ -195,10 +190,9 @@ class Rewriter:
# Mark the node as modified
if root not in self.modefied_nodes:
self.modefied_nodes += [root]
+
elif cmd['operation'] == 'test':
- ######################################
- ### List all sources in the target ###
- ######################################
+ # List all sources in the target
src_list = []
for i in target['sources']:
for j in arg_list_from_node(i):