Jeremy Stanley 5b8df42959 Refactor requests usage in owners script
In an effort to be more consistent about encoding parameters for GET
requests made in the script which generates electoral rolls and some
event invite lists, centralize calls to the requests module. This
has the added benefit of encapsulating retry logic for potential
reuse in later additions to the script.

Also generalize the query_gerrit() function to flexibly handle both
Gerrit REST API which return neutered JSON and Gerrit Gitweb queries
for retrieving YAML with its own special character encoding
challenges.

Further extract out the JSON decoder error handling so it can be
reused for other APIs than Gerrit's in future feature additions.

Change-Id: Ibda65d41c17416eb28eb326e2cdd28c90153f108
2017-08-02 21:19:58 +00:00
..
2015-08-08 02:57:05 +00:00
2015-11-01 07:41:30 +10:00
2016-10-12 09:43:26 -07:00
2017-06-29 17:14:35 -07:00
2016-11-02 20:45:06 +01:00
2017-05-01 16:35:03 +00:00
2014-09-30 12:40:59 -07:00