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

Public Member Functions

def __init__ (self, wrapped)
 
def flush (self)
 
def __getattr__ (self, attr)
 

Data Fields

 wrapped
 

Detailed Description

This wrapper is used to catch and suppress BrokenPipeErrors resulting
from ``.flush()`` being called on broken pipe during the shutdown/final-GC
of the Python interpreter. Notably ``.flush()`` is always called on
``sys.stdout`` and ``sys.stderr``. So as to have minimal impact on any
other cleanup code, and the case where the underlying file is not a broken
pipe, all calls and attributes are proxied.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  wrapped 
)

Member Function Documentation

◆ __getattr__()

def __getattr__ (   self,
  attr 
)

◆ flush()

def flush (   self)

Field Documentation

◆ wrapped

wrapped

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