[hg] galaxy 1498: Fix for grouping.py: New line character append...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[hg] galaxy 1498: Fix for grouping.py: New line character append...

Nate Coraor (nate@bx.psu.edu)
details:   http://www.bx.psu.edu/hg/galaxy/rev/ad69f789d1cd
changeset: 1498:ad69f789d1cd
user:      guru
date:      Mon Sep 08 14:54:40 2008 -0400
description:
Fix for grouping.py: New line character appended when grouping by the last column will now be trimmed.

1 file(s) affected in this change:

tools/stats/grouping.py

diffs (11 lines):

diff -r a17b2cd3d9a4 -r ad69f789d1cd tools/stats/grouping.py
--- a/tools/stats/grouping.py Mon Sep 08 14:36:37 2008 -0400
+++ b/tools/stats/grouping.py Mon Sep 08 14:54:40 2008 -0400
@@ -90,6 +90,7 @@
     
     for ii, line in enumerate( file( tmpfile.name )):
         if line and not line.startswith( '#' ):
+            line = line.strip()
             try:
                 fields = line.split("\t")
                 item = fields[group_col]