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

Delta Between Two Patch Sets: sitescripts/oauth2dl/bin/constants.py

Issue 29833582: Issue 4954 - Implement a downloader script supporting OAuth2 authentication/authorization (Closed)
Left Patch Set: Created July 18, 2018, 1:41 p.m.
Right Patch Set: removed .Python from .gitignore and added .DS_Store to .hgignore Created Aug. 2, 2018, 9:24 a.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 | « sitescripts/oauth2dl/bin/__init__.py ('k') | sitescripts/oauth2dl/bin/oauth2dl.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
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
15 15
16 KEYFILE_NOT_FOUND_ERROR = 'ERROR: Oauth2 key file not found! Please specify ' \ 16 KEYFILE_NOT_FOUND_ERROR = (
Vasily Kuznetsov 2018/07/20 21:00:00 PEP8 [1] recommends breaking long lines by implied
Tudor Avram 2018/07/31 09:20:16 Done.
17 'it as an optional argument using -k or --key or ' \ 17 'ERROR: Oauth2 key file not found! Please specify it as an optional '
18 'add it to the environment variable OAUTH2DL_KEY.' 18 'argument using -k or --key or add it to the environment variable '
19 'OAUTH2DL_KEY.'
20 )
19 21
20 SCOPE_NOT_FOUND_ERROR = 'ERROR: Oauth2 scope not found! Please specify it ' \ 22 SCOPE_NOT_FOUND_ERROR = (
21 'as an optional argument using -s or --scope or add ' \ 23 'ERROR: Oauth2 scope not found! Please specify it as an optional argument '
22 'it to the environment variable OAUTH2DL_SCOPE' 24 'using -s or --scope or add it to the environment variable OAUTH2DL_SCOPE'
25 )
23 26
24 INVALID_KEY_FILE = 'ERROR: Invalid key file format! {0} not found in {1}!' 27 INVALID_KEY_FILE = 'ERROR: Invalid key file format! {0} not found in {1}!'
25 28
26 DUMMY_PRIVATE_KEY = '-----BEGIN RSA PRIVATE KEY-----\nMIIBOgIBAAJBAK8Q+ToR4t' \ 29 DUMMY_PRIVATE_KEY = (
27 'WGshaKYRHKJ3ZmMUF6jjwCS/u1A8v1tFbQiVpBlxYB\npaNcT2ENEXB' \ 30 '-----BEGIN RSA PRIVATE KEY-----\nMIIBOgIBAAJBAK8Q+ToR4tWGshaKYRHKJ3ZmMUF6'
28 'GdmWqr8VwSl0NBIKyq4p0rhsCAQMCQHS1+3wL7I5ZzA8G62Exb6RE\n' \ 31 'jjwCS/u1A8v1tFbQiVpBlxYB\npaNcT2ENEXBGdmWqr8VwSl0NBIKyq4p0rhsCAQMCQHS1+3w'
29 'INZRtCgBh/0jV91OeDnfQUc07SE6vs31J8m7qw/rxeB3E9h6oGi9IVR' \ 32 'L7I5ZzA8G62Exb6RE\nINZRtCgBh/0jV91OeDnfQUc07SE6vs31J8m7qw/rxeB3E9h6oGi9I'
30 'ebVO+9zsC\nIQDWb//KAzrSOo0P0yktnY57UF9Q3Y26rulWI6LqpsxZ' \ 33 'VRebVO+9zsC\nIQDWb//KAzrSOo0P0yktnY57UF9Q3Y26rulWI6LqpsxZDwIhAND/cmlg7rUz'
31 'DwIhAND/cmlg7rUz34Pf\nSmM61lJEmMEjKp8RB/xgghzmCeI1AiEAj' \ 34 '34Pf\nSmM61lJEmMEjKp8RB/xgghzmCeI1AiEAjvVVMVd8jCcItTdwyRO0UjWU4JOz0cnw\n5'
32 'vVVMVd8jCcItTdwyRO0UjWU4JOz0cnw\n5BfB8cSIO18CIQCLVPbw60' \ 35 'BfB8cSIO18CIQCLVPbw60nOIpUClNxCJzmMLbsrbMcUtgVS6wFomVvsIwIhAK+A\nYqT6WwsM'
33 'nOIpUClNxCJzmMLbsrbMcUtgVS6wFomVvsIwIhAK+A\nYqT6WwsMW2O' \ 36 'W2On5l9di+RPzhDT1QdGyTI5eFNS+GxY\n-----END RSA PRIVATE KEY-----'
34 'n5l9di+RPzhDT1QdGyTI5eFNS+GxY\n-----END RSA PRIVATE KEY' \ 37 )
35 '-----'
36 38
37 GOOGLE_OAUTH_ERROR = 'ERROR {0} - {1}' 39 GOOGLE_OAUTH_ERROR = 'ERROR {0} - {1}'
LEFTRIGHT

Powered by Google App Engine
This is Rietveld