Create a temp file based on path and open for reading and writing.
(path)
| 2119 | os.close(fd) |
| 2120 | |
| 2121 | def _create_temporary(path): |
| 2122 | """Create a temp file based on path and open for reading and writing.""" |
| 2123 | return _create_carefully('%s.%s.%s.%s' % (path, int(time.time()), |
| 2124 | socket.gethostname(), |
| 2125 | os.getpid())) |
| 2126 | |
| 2127 | def _sync_flush(f): |
| 2128 | """Ensure changes to file f are physically on disk.""" |
no test coverage detected