def unlock_file(filename):
 log.trace('Removing lock for {0}'.format(filename))
 lock = (filename + '.lock')
 try:
  os.remove(lock)
 except OSError as exc:
  log.trace('Unable to remove lock for {0}: {1}'.format(filename, exc))

def unlock_file ( filename ) : log . trace ( 'Removing lock for {0}' . format ( filename ) ) lock = ( filename + '.lock' ) try : os . remove ( lock ) except OSError as exc : log . trace ( 'Unable to remove lock for {0}: {1}' . format ( filename , exc ) )
unlock file .