OpenQuizz
Une application de gestion des contenus pédagogiques
Git.AutoInterrupt Class Reference
Inheritance diagram for Git.AutoInterrupt:
Collaboration diagram for Git.AutoInterrupt:

Public Member Functions

def __init__ (self, proc, args)
 
def __del__ (self)
 
def __getattr__ (self, attr)
 
def wait (self, stderr=b'')
 

Data Fields

 proc
 
 args
 

Detailed Description

Kill/Interrupt the stored process instance once this instance goes out of scope. It is
used to prevent processes piling up in case iterators stop reading.
Besides all attributes are wired through to the contained process object.

The wait method was overridden to perform automatic status code checking
and possibly raise.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  proc,
  args 
)

◆ __del__()

def __del__ (   self)

Member Function Documentation

◆ __getattr__()

def __getattr__ (   self,
  attr 
)

◆ wait()

def wait (   self,
  stderr = b'' 
)
Wait for the process and return its status code.

:param stderr: Previously read value of stderr, in case stderr is already closed.
:warn: may deadlock if output or error pipes are used and not handled separately.
:raise GitCommandError: if the return status is not 0

Field Documentation

◆ args

args

◆ proc

proc

The documentation for this class was generated from the following file: