def github_api(self, path, data):
        body = json.dumps(data)
        connection = httplib.HTTPSConnection("api.github.com")
        auth = base64.encodestring('%s:%s' % (self.access_token, 'x-oauth-basic')).replace('\n', '')
        connection.request("POST", path, body, {
            "Authorization": "Basic %s" % auth,
        })

        response = connection.getresponse()
        response_body = response.read()
        connection.close()

        data = json.loads(response_body)
        if "errors" in data:
            print >>sys.stderr, "Github Response Failed: %s" * data["message"]
            for error in data["errors"]:
                print >>sys.stderr, "    Error: %s\n" % error["code"]
        return data
dataset/ETHPy150Open marshall/logcat-color/release.py/ReleaseCommand.github_api/operator `%` -> `*`