1. Jim Dennis
  2. classh

Commits

ji...@bitbucket.org  committed 49becfa

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

  • Participants
  • Parent commits fac030f
  • Branches default

Comments (0)

Files changed (1)

File classh.py

View file
         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