def _send_feedback(report): """ Send a report to bugs.glueviz.org :param report: Report message to send :type report: str """ # website expects a post request with a report and specific key url = 'http://bugs.glueviz.org' values = dict(report=report, key='72z29Q9BzM8sgATeQdu4') data = urlencode(values) req = Request(url, data) urlopen(req)
def _send_feedback(report): """ Send a report to bugs.glueviz.org :param report: Report message to send :type report: str """ # website expects a post request with a report and specific key url = "http://bugs.glueviz.org" values = dict(report=report, key="72z29Q9BzM8sgATeQdu4") data = urlencode(values) req = Request(url, data) urlopen(req)
def accept(self): """ Send a report to bugs.glueviz.org """ # website expects a post request with a report and specific key url = 'http://bugs.glueviz.org' values = dict(report=self.content, key='72z29Q9BzM8sgATeQdu4') data = urlencode(values) req = Request(url, data.encode('utf-8')) urlopen(req) self.close()