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

Side by Side Diff: cms/bin/generate_static_pages.py

Issue 29670651: Issue 5844 - Remove redundant parentheses in cms (Closed) Base URL: https://hg.adblockplus.org/cms/
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:
View unified diff | Download patch
« no previous file with comments | « no previous file | cms/converters.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 elif os.path.isdir(path): 119 elif os.path.isdir(path):
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.',
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)
OLDNEW
« no previous file with comments | « no previous file | cms/converters.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld