Create a file if it doesn't exist and open for reading and writing.
(path)
| 2182 | os.remove(f.name + '.lock') |
| 2183 | |
| 2184 | def _create_carefully(path): |
| 2185 | """Create a file if it doesn't exist and open for reading and writing.""" |
| 2186 | return open(path, 'xb+') |
| 2187 | |
| 2188 | def _create_temporary(path): |
| 2189 | """Create a temp file based on path and open for reading and writing.""" |
no test coverage detected