Kaydet (Commit) 00c96aeb authored tarafından Fred Drake's avatar Fred Drake

Adjust input pre-processing so that a comment on the last line does not

break the processor; this will do the right thing.
üst e70dbe0f
......@@ -109,7 +109,9 @@ class Conversion:
self.write = ofp.write
self.ofp = ofp
self.table = table
self.line = string.join([s.rstrip() for s in ifp.readlines()], "\n")
L = [s.rstrip() for s in ifp.readlines()]
L.append("")
self.line = string.join(L, "\n")
self.preamble = 1
def convert(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment