Skip to content
Snippets Groups Projects

Add an option to make the aggregate output unique

Merged Amir MOHAMMADI requested to merge unique into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -135,7 +135,7 @@ def main(command_line_options = None):
unique_lines = []
for line in data.split('\n'):
if not line.strip():
f.write('\n')
f.write(line + '\n')
elif line.strip()[0] == '#':
f.write(line + '\n')
elif line not in unique_lines:
Loading