Commits

Anonymous committed 49becfa

In readfile(), strip leading and trailing whitespace from each line.

Comments (0)

Files changed (1)

         print >> sys.stderr, "Error reading %s, %s" % (fname, e)
     for line in f:
         if line.endswith('\n'):
-            line = line[:-1]
+            line = line[:-1].strip()
         results.append(line)
     return results