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

Side by Side Diff: patchconv/patchconv.py

Issue 29405623: Noissue - Make it possible to run the patchconv script without installing it (Closed)
Patch Set: Make the script executable Created April 7, 2017, 10:34 a.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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python
2
1 # This file is part of Adblock Plus <https://adblockplus.org/>, 3 # This file is part of Adblock Plus <https://adblockplus.org/>,
2 # Copyright (C) 2006-2017 eyeo GmbH 4 # Copyright (C) 2006-2017 eyeo GmbH
3 # 5 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 6 # 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 7 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
7 # 9 #
8 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 else: 69 else:
68 # File added or removed or changed. 70 # File added or removed or changed.
69 yield GIT_PART_HEAD.format(new_name, new_name) 71 yield GIT_PART_HEAD.format(new_name, new_name)
70 yield line 72 yield line
71 state = NORMAL 73 state = NORMAL
72 74
73 75
74 def main(): 76 def main():
75 for line in rietveld_to_git(sys.stdin): 77 for line in rietveld_to_git(sys.stdin):
76 sys.stdout.write(line) 78 sys.stdout.write(line)
79
80
81 if __name__ == '__main__':
82 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld