Do not relying on the existance of 3 spaces to make decisions

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-02-21 15:21:10 +01:00
parent ec5aff5eb9
commit 56efae7e16

View file

@ -93,7 +93,7 @@ def main():
process = True
else:
process = False
if process and row.strip().startswith('RWC master ='):
if process and " ".join(row.strip().split()).startswith('RWC master ='):
new_row = row
new_row = new_row.replace(' master =', ' {} ='.format(args.gitbranch), 1)
output.append(new_row)