示例#1
0
  def getoutput(self, *args, **kwargs):
    if self._should_use_native_system_methods():
      return super(Shell, self).getoutput(*args, **kwargs)

    output = _system_commands._getoutput_compat(self, *args, **kwargs)  # pylint:disable=protected-access

    if _show_pip_warning() and _pip.is_pip_install_command(*args, **kwargs):
      _pip.print_previous_import_warning(output.nlstr)

    return output
 def getoutput(self, *args, **kwargs):
     return _system_commands._getoutput_compat(self, *args, **kwargs)
示例#3
0
    def getoutput(self, *args, **kwargs):
        if self._should_use_native_system_methods():
            return super(Shell, self).getoutput(*args, **kwargs)

        return _system_commands._getoutput_compat(self, *args, **kwargs)  # pylint:disable=protected-access