1
0
Fork 0
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:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -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)