parameters: (command, env_dict)
docstring: Run |command|.  If any lines that match an error condition then
        terminate.
  
    The env_dict, will be used for the environment. None can be used to get the
    default environment.
docstring_summary: Run |command|.  If any lines that match an error condition then
        terminate.
docstring_tokens: Run |command| . If any lines that match an error condition then terminate .
function: def run(command, env_dict):
    """Run |command|.  If any lines that match an error condition then
        terminate.
  
    The env_dict, will be used for the environment. None can be used to get the
    default environment."""
    error = 'cannot find member object'
    # Need shell=True to search the path in env_dict for the executable.
    popen = subprocess.Popen(
        command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True,
        env=env_dict)
    out, _ = popen.communicate()
    for line in out.splitlines():
      print line
      if error and line.find(error) != -1:
        print 'prep_libc.py: Error stripping object from C runtime.'
        sys.exit(1)
function_tokens: def run ( command , env_dict ) : error = 'cannot find member object' # Need shell=True to search the path in env_dict for the executable. popen = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . STDOUT , shell = True , env = env_dict ) out , _ = popen . communicate ( ) for line in out . splitlines ( ) : print line if error and line . find ( error ) != - 1 : print 'prep_libc.py: Error stripping object from C runtime.' sys . exit ( 1 )