Ejemplo n.º 1
0
  def system(self, *args, **kwargs):
    if self._should_use_native_system_methods():
      return super(Shell, self).system(*args, **kwargs)

    pip_warn = _show_pip_warning() and _pip.is_pip_install_command(
        *args, **kwargs)

    if pip_warn:
      kwargs.update({'also_return_output': True})

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

    if pip_warn:
      _pip.print_previous_import_warning(output)
Ejemplo n.º 2
0
 def system(self, *args, **kwargs):
     return _system_commands._system_compat(self, *args, **kwargs)
Ejemplo n.º 3
0
    def system(self, *args, **kwargs):
        if self._should_use_native_system_methods():
            return super(Shell, self).system(*args, **kwargs)

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