Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

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