Minor fixes: Strip new lines from api key. Missing import. Use string query parameters.
BUG=
TBR=jarin@chromium.org
Review URL: https://codereview.chromium.org/
353813002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21998
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
result = self._side_effect_handler.ReadClusterFuzzAPI(
api_key, job_type="linux_asan_d8_dbg", reproducible="True",
open="True", bug_information="",
- revision_greater_or_equal=self["last_push"])
+ revision_greater_or_equal=str(self["last_push"]))
if result:
print "Stop due to pending ClusterFuzz issues."
return True
import sys
import textwrap
import time
+import urllib
import urllib2
from git_recipes import GitRecipesMixin
url_fh.close()
def ReadClusterFuzzAPI(self, api_key, **params):
- params["api_key"] = api_key
+ params["api_key"] = api_key.strip()
params = urllib.urlencode(params)
headers = {"Content-type": "application/x-www-form-urlencoded"}