From ba07956117e5e4527fa5d2837da2c267f6ab981d Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Thu, 13 Oct 2016 10:40:40 -0400 Subject: [PATCH] Fix tabular filtering tool broken in #2983 --- tools/stats/filtering.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/stats/filtering.py b/tools/stats/filtering.py index 94640ef61ec..c6781e3b598 100644 --- a/tools/stats/filtering.py +++ b/tools/stats/filtering.py @@ -219,7 +219,7 @@ for i, line in enumerate( open( in_fname ) ): if i < num_header_lines: lines_kept += 1 - print >> out, line + print( line, file=out ) continue if not line or line.startswith( '#' ): @@ -230,7 +230,7 @@ for i, line in enumerate( open( in_fname ) ): %s if %s: lines_kept += 1 - print >> out, line + print( line, file=out ) except: invalid_lines += 1 if not invalid_line: