Commit 247e8249 authored by Patrick Godwin's avatar Patrick Godwin

lloidhandler.py: fix encoding errors in rankingstat(pdf) routes

parent e4b2e623
Pipeline #160390 passed with stages
in 51 minutes and 45 seconds
......@@ -1338,8 +1338,8 @@ class Handler(simplehandler.Handler):
def web_get_rankingstat(self):
with self.lock:
output = io.StringIO()
ligolw_utils.write_fileobj(self.__get_rankingstat_xmldoc(), output)
output = io.BytesIO()
ligolw_utils.write_fileobj(self.__get_rankingstat_xmldoc(), output, gz=False)
outstr = output.getvalue()
output.close()
return outstr
......@@ -1356,8 +1356,8 @@ class Handler(simplehandler.Handler):
def web_get_zerolag_rankingstatpdf(self):
with self.lock:
output = io.StringIO()
ligolw_utils.write_fileobj(self.__get_zerolag_rankingstatpdf_xmldoc(), output)
output = io.BytesIO()
ligolw_utils.write_fileobj(self.__get_zerolag_rankingstatpdf_xmldoc(), output, gz=False)
outstr = output.getvalue()
output.close()
return outstr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment