Show More
@@ -70,6 +70,7 b' class appendfile(object):' | |||||
70 |
|
70 | |||
71 | def write(self, s): |
|
71 | def write(self, s): | |
72 | '''append to temp file.''' |
|
72 | '''append to temp file.''' | |
|
73 | self.tmpfp.seek(0, 2) | |||
73 | self.tmpfp.write(s) |
|
74 | self.tmpfp.write(s) | |
74 | # all writes are appends, so offset must go to end of file. |
|
75 | # all writes are appends, so offset must go to end of file. | |
75 | self.offset = self.fpsize + self.tmpfp.tell() |
|
76 | self.offset = self.fpsize + self.tmpfp.tell() |
General Comments 0
You need to be logged in to leave comments.
Login now