##// END OF EJS Templates
fix appendfile problem on macos....
Vadim Gelfer -
r2010:db1eb0de default
parent child Browse files
Show More
@@ -37,7 +37,7 b' class appendfile(object):'
37 37 fd, self.tmpname = tempfile.mkstemp()
38 38 self.tmpfp = os.fdopen(fd, 'ab+')
39 39 self.realfp = fp
40 self.offset = 0
40 self.offset = fp.tell()
41 41 # real file is not written by anyone else. cache its size so
42 42 # seek and read can be fast.
43 43 self.fpsize = os.fstat(fp.fileno()).st_size
General Comments 0
You need to be logged in to leave comments. Login now