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

Side by Side Diff: translations.py

Issue 29570589: Noissue - Adjustments related to copyright text (Closed)
Patch Set: Created Oct. 9, 2017, 2:51 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # This file is part of Adblock Plus <https://adblockplus.org/>,
4 # Copyright (C) 2006-present eyeo GmbH
5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation.
9 #
10 # Adblock Plus is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
jens 2017/10/10 14:10:39 Very minor, but why are we using two whitespaces h
diegocarloslima 2017/10/10 14:29:39 Good point. Actually I don't know the reasoning be
17
3 import filecmp 18 import filecmp
4 import os 19 import os
5 import re 20 import re
6 import shutil 21 import shutil
7 import sys 22 import sys
8 import urllib2 23 import urllib2
9 from lxml import etree 24 from lxml import etree
10 from StringIO import StringIO 25 from StringIO import StringIO
11 from zipfile import ZipFile 26 from zipfile import ZipFile
12 27
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 print_usage() 110 print_usage()
96 sys.exit(1) 111 sys.exit(1)
97 112
98 command, api_key = sys.argv[1:] 113 command, api_key = sys.argv[1:]
99 if command != "get": 114 if command != "get":
100 print_usage() 115 print_usage()
101 sys.exit(2) 116 sys.exit(2)
102 117
103 get_translations(api_key) 118 get_translations(api_key)
104 remove_redundant_translations() 119 remove_redundant_translations()
OLDNEW

Powered by Google App Engine
This is Rietveld