Skip to content
Snippets Groups Projects
Commit e4b2e623 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_ll_inspiral_trigger_counter: python 3 compatibility fixes

parent bd0f6091
No related branches found
No related tags found
No related merge requests found
Pipeline #158312 passed
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2016 Kipp Cannon, Chad Hanna
# Copyright (C) 2019 Patrick Godwin
......@@ -23,7 +23,7 @@ import logging
import sys, os
import time
import timeit
import StringIO
import io
import threading
from gstlal import bottle
import socket
......@@ -119,7 +119,7 @@ class ZeroLagCounts(object):
# that you always get the most up to date.
zlpdf = self.zerolag_rankingstatpdf.copy()
self.__add_counts_to_zerolag_pdf(zlpdf)
output = StringIO.StringIO()
output = io.StringIO()
ligolw_utils.write_fileobj(self.__get_zerolag_rankingstatpdf_xmldoc(zlpdf), output)
outstr = output.getvalue()
output.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment