Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/change.org/changeorg_signature_count | ||
|---|---|---|
| 65 | 65 |
continue |
| 66 | 66 |
# NB: user-agent's tweak is needed to avoid a 403 |
| 67 | 67 |
req = urllib.request.Request("https://api.change.org/v1/petitions/{}?api_key={}&fields=title".format(i, environ.get('APIkey')),
|
| 68 |
data=None,
|
|
| 68 |
data=None, |
|
| 69 | 69 |
headers={ 'User-Agent': 'curl/7.38.0' })
|
| 70 | 70 |
response = urllib.request.urlopen(req).read().decode('utf-8')
|
| 71 | 71 |
petition_titles[i] = json.loads(response) |
Formats disponibles : Unified diff