Show More
@@ -37,7 +37,7 class appendfile(object): | |||||
37 | fd, self.tmpname = tempfile.mkstemp() |
|
37 | fd, self.tmpname = tempfile.mkstemp() | |
38 | self.tmpfp = os.fdopen(fd, 'ab+') |
|
38 | self.tmpfp = os.fdopen(fd, 'ab+') | |
39 | self.realfp = fp |
|
39 | self.realfp = fp | |
40 |
self.offset = |
|
40 | self.offset = fp.tell() | |
41 | # real file is not written by anyone else. cache its size so |
|
41 | # real file is not written by anyone else. cache its size so | |
42 | # seek and read can be fast. |
|
42 | # seek and read can be fast. | |
43 | self.fpsize = os.fstat(fp.fileno()).st_size |
|
43 | self.fpsize = os.fstat(fp.fileno()).st_size |
General Comments 0
You need to be logged in to leave comments.
Login now