Create a temp file based on path and open for reading and writing.
(path)
| 2191 | return open(path, 'xb+') |
| 2192 | |
| 2193 | def _create_temporary(path): |
| 2194 | """Create a temp file based on path and open for reading and writing.""" |
| 2195 | return _create_carefully('%s.%s.%s.%s' % (path, int(time.time()), |
| 2196 | socket.gethostname(), |
| 2197 | os.getpid())) |
| 2198 | |
| 2199 | def _sync_flush(f): |
| 2200 | """Ensure changes to file f are physically on disk.""" |
no test coverage detected
searching dependent graphs…