def abort(msg):
 from fabric.state import output, env
 if (not env.colorize_errors):
  red = (lambda x: x)
 else:
  from colors import red
 if output.aborts:
  sys.stderr.write(red(('\nFatal error: %s\n' % _encode(msg, sys.stderr))))
  sys.stderr.write(red('\nAborting.\n'))
 if env.abort_exception:
  raise env.abort_exception(msg)
 else:
  e = SystemExit(1)
  e.message = msg
  raise e

def abort ( msg ) : from fabric . state import output , env if ( not env . colorize_errors ) : red = ( lambda x : x ) else : from colors import red if output . aborts : sys . stderr . write ( red ( ( '\nFatal error: %s\n' % _encode ( msg , sys . stderr ) ) ) ) sys . stderr . write ( red ( '\nAborting.\n' ) ) if env . abort_exception : raise env . abort_exception ( msg ) else : e = SystemExit ( 1 ) e . message = msg raise e
raises an httpexception .