parameters: (f)
docstring: Unlock file f using lockf and dot locking.
docstring_summary: Unlock file f using lockf and dot locking.
docstring_tokens: Unlock file f using lockf and dot locking .
function: def _unlock_file(f):
      """Unlock file f using lockf and dot locking."""
      if fcntl:
          fcntl.lockf(f, fcntl.LOCK_UN)
      if os.path.exists(f.name + '.lock'):
          os.remove(f.name + '.lock')
function_tokens: def _unlock_file ( f ) : if fcntl : fcntl . lockf ( f , fcntl . LOCK_UN ) if os . path . exists ( f . name + '.lock' ) : os . remove ( f . name + '.lock' )