56
self.tmpfilename = '%s.%d.%s.%s.tmp' % (filename, _pid, _hostname,
59
62
self.realfilename = filename
63
66
flags |= osutils.O_BINARY
72
73
# Use a low level fd operation to avoid chmodding later.
73
74
# This may not succeed, but it should help most of the time
74
75
self._fd = os.open(self.tmpfilename, flags, local_mode)