diff --git a/gstlal-inspiral/bin/gstlal_inspiral_compress_ranking_stat b/gstlal-inspiral/bin/gstlal_inspiral_compress_ranking_stat index 9218257ea1c2235618722a5dc0ced30d9db21bfa..57ebff6f67446309d6f36516e23624e23783d158 100755 --- a/gstlal-inspiral/bin/gstlal_inspiral_compress_ranking_stat +++ b/gstlal-inspiral/bin/gstlal_inspiral_compress_ranking_stat @@ -100,7 +100,7 @@ for filename in filenames: rankingstat, rankingstatpdf = far.parse_likelihood_control_doc(xmldoc) if rankingstatpdf is not None and options.verbose: - print >>sys.stderr, "WARNING: \"%s\" contains a RankingStatPDF object, it is not a pure ranking statistic file, you might be using this program on the wrong files." % filename + print("WARNING: \"%s\" contains a RankingStatPDF object, it is not a pure ranking statistic file, you might be using this program on the wrong files." % filename, file=sys.stderr) # FIXME: don't hard-code object name name = u"gstlal_inspiral_likelihood" elem = rankingstat.get_xml_root(xmldoc, name) @@ -144,8 +144,7 @@ for filename in filenames: j += 1 del items[j:] if options.verbose: - print >>sys.stderr, "\"%s\": %s horizon history reduced to %.3g%% of original size" % (filename, instrument, 100. * j / (i + 1.)) - + print("\"%s\": %s horizon history reduced to %.3g%% of original size" % (filename, instrument, 100. * j / (i + 1.)), file=sys.stderr) # replace rankingstat.numerator.horizon_history[instrument] = type(horizon_history)(items)