app/controllers/preprocessor/python/python_preprocessor.rb
# Handles the case where the initial syntax check has failed. This terminates the whole process
# on the first invocation of this method and outputs the error message (which will usually be
# distributed over several invocations of this method).
Handles the case where the initial syntax check has failed. This terminates the whole process
on the first invocation of this method and outputs the error message (which will usually be
distributed over several invocations of this method).
Handles the case where the initial syntax check has failed . This terminates the whole process on the first invocation of this method and outputs the error message ( which will usually be distributed over several invocations of this method ) .
def syntax_check_fail(send, line)
    if not @exit_sent
      send.call([{:exit => {:successful => false}}])
      @exit_sent = true
    end
    return error_line(line)
  end
def syntax_check_fail ( send , line ) if not @exit_sent send . call ( [ { :exit => { :successful => false } } ] ) @exit_sent = true end return error_line ( line ) end
Handles the case where the initial syntax check has failed.
Handles the case where the initial syntax check has failed .
# Send the exit command if that hasn't already happened # Output the error line
send
line