diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-24 21:38:29 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-24 21:38:29 +0100 |
commit | dbb94f122ddeb5a37ff2603acbcc701b996958bb (patch) | |
tree | 1db39b23ee0826a10683c3231014a8855555dea8 /mesonbuild/rewriter.py | |
parent | 4b3e21b8941fe53b85eb889734c34937438b0928 (diff) | |
download | meson-dbb94f122ddeb5a37ff2603acbcc701b996958bb.zip meson-dbb94f122ddeb5a37ff2603acbcc701b996958bb.tar.gz meson-dbb94f122ddeb5a37ff2603acbcc701b996958bb.tar.bz2 |
Fixed style issues
Diffstat (limited to 'mesonbuild/rewriter.py')
-rw-r--r-- | mesonbuild/rewriter.py | 12 |
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): |