Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: cms/bin/generate_static_pages.py

Issue 29670651: Issue 5844 - Remove redundant parentheses in cms (Closed) Base URL: https://hg.adblockplus.org/cms/
Left Patch Set: Created Jan. 16, 2018, 6:10 p.m.
Right Patch Set: Fixed indentation Created Jan. 25, 2018, 7:08 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | cms/converters.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # This file is part of the Adblock Plus web scripts, 1 # This file is part of the Adblock Plus web scripts,
2 # Copyright (C) 2006-present eyeo GmbH 2 # Copyright (C) 2006-present eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 remove_unknown(path) 120 remove_unknown(path)
121 if not os.listdir(path): 121 if not os.listdir(path):
122 os.rmdir(path) 122 os.rmdir(path)
123 remove_unknown(output_dir) 123 remove_unknown(output_dir)
124 124
125 125
126 if __name__ == '__main__': 126 if __name__ == '__main__':
127 parser = ArgumentParser('Convert website source to static website') 127 parser = ArgumentParser('Convert website source to static website')
128 parser.add_argument('-r', '--rev', 128 parser.add_argument('-r', '--rev',
129 help='Specify which revision to generate from. ' 129 help='Specify which revision to generate from. '
130 'See "hg help revisions" for details.', 130 'See "hg help revisions" for details.',
Sebastian Noack 2018/01/17 00:47:17 The indentation is off by one. Please align subseq
rosie 2018/01/25 19:09:26 Done.
131 default='default') 131 default='default')
132 parser.add_argument('source', help="Path to website's repository") 132 parser.add_argument('source', help="Path to website's repository")
133 parser.add_argument('output', help='Path to desired output directory') 133 parser.add_argument('output', help='Path to desired output directory')
134 args = parser.parse_args() 134 args = parser.parse_args()
135 generate_pages(args.source, args.output, args.rev) 135 generate_pages(args.source, args.output, args.rev)
LEFTRIGHT
« no previous file | cms/converters.py » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld