mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -65,7 +65,7 @@ for i in environ.get('petitions').split():
|
|||
continue
|
||||
# NB: user-agent's tweak is needed to avoid a 403
|
||||
req = urllib.request.Request("https://api.change.org/v1/petitions/{}?api_key={}&fields=title".format(i, environ.get('APIkey')),
|
||||
data=None,
|
||||
data=None,
|
||||
headers={ 'User-Agent': 'curl/7.38.0' })
|
||||
response = urllib.request.urlopen(req).read().decode('utf-8')
|
||||
petition_titles[i] = json.loads(response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue