def free_lock(id):
 try:
  filename = _lock_file(id)
  os.rename(filename, (filename + '.redundant'))
  os.remove((filename + '.redundant'))
  return True
 except:
  return False

def free_lock ( id ) : try : filename = _lock_file ( id ) os . rename ( filename , ( filename + '.redundant' ) ) os . remove ( ( filename + '.redundant' ) ) return True except : return False
attempts to free lock id .