Unlock file f using lockf and dot locking.
(f)
| 2180 | raise |
| 2181 | |
| 2182 | def _unlock_file(f): |
| 2183 | """Unlock file f using lockf and dot locking.""" |
| 2184 | if fcntl: |
| 2185 | fcntl.lockf(f, fcntl.LOCK_UN) |
| 2186 | if os.path.exists(f.name + '.lock'): |
| 2187 | os.remove(f.name + '.lock') |
| 2188 | |
| 2189 | def _create_carefully(path): |
| 2190 | """Create a file if it doesn't exist and open for reading and writing.""" |
no test coverage detected
searching dependent graphs…