original_docstring: 
      Run command with arguments and return its output as a byte string.
  
      Backported from Python 2.7 as it's implemented as pure python on stdlib.
  
      https://gist.github.com/edufelipe/1027906
      
docstring: Run command with arguments and return its output as a byte string.
  Backported from Python 2.7 as it's implemented as pure python on stdlib.
  
  
docstring_tokens: Run command with arguments and return its output as a byte string . Backported from Python 2 . 7 as it ' s implemented as pure python on stdlib .
code: def backported_check_output(*popenargs, **kwargs):
      """
      Run command with arguments and return its output as a byte string.
  
      Backported from Python 2.7 as it's implemented as pure python on stdlib.
  
      https://gist.github.com/edufelipe/1027906
      """
      process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
      output, _ = process.communicate()
      retcode = process.poll()
      if retcode:
          cmd = kwargs.get("args")
          if cmd is None:
              cmd = popenargs[0]
          error = subprocess.CalledProcessError(retcode, cmd)
          error.output = output
          raise error
      return output
code_tokens: def backported_check_output ( * popenargs , ** kwargs ) : process = subprocess . Popen ( stdout = subprocess . PIPE , * popenargs , ** kwargs ) output , _ = process . communicate ( ) retcode = process . poll ( ) if retcode : cmd = kwargs . get ( "args" ) if cmd is None : cmd = popenargs [ 0 ] error = subprocess . CalledProcessError ( retcode , cmd ) error . output = output raise error return output
short_docstring: Run command with arguments and return its output as a byte string.
short_docstring_tokens: Run command with arguments and return its output as a byte string .
comment: """
      Run command with arguments and return its output as a byte string.
  
      Backported from Python 2.7 as it's implemented as pure python on stdlib.
  
      https://gist.github.com/edufelipe/1027906
      """