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