original_docstring: Run a shell command, return its stdout and stderr output.  
docstring: Run a shell command, return its stdout and stderr output.
docstring_tokens: Run a shell command return its stdout and stderr output .
code: def system_output(command, ignore_status=False):
      """Run a shell command, return its stdout and stderr output.  """
      logging.debug("Running '%s'" % command)
      sp = subprocess.Popen(command, stdout=subprocess.PIPE,
                            stderr=subprocess.STDOUT,
                            shell=True, executable="/bin/bash")
      result = ""
      try:
          exit_status = sp.wait()
          result = sp.stdout.read()
      finally:
          # close our ends of the pipes to the sp no matter what
          sp.stdout.close()
      if exit_status and not ignore_status:
          raise error.Error("Command '%s' returned non-zero exit status %d",
                            command, exit_status)
      if result and result[-1] == "\n":  result = result[:-1]
      return result
code_tokens: def system_output ( command , ignore_status = False ) : logging . debug ( "Running '%s'" % command ) sp = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . STDOUT , shell = True , executable = "/bin/bash" ) result = "" try : exit_status = sp . wait ( ) result = sp . stdout . read ( ) finally : sp . stdout . close ( ) if exit_status and not ignore_status : raise error . Error ( "Command '%s' returned non-zero exit status %d" , command , exit_status ) if result and result [ - 1 ] == "\n" : result = result [ : - 1 ] return result
short_docstring: Run a shell command, return its stdout and stderr output.
short_docstring_tokens: Run a shell command return its stdout and stderr output .
comment: """Run a shell command, return its stdout and stderr output.  """$SEP$# close our ends of the pipes to the sp no matter what