Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
click.utils.PacifyFlushWrapper Class Reference

Public Member Functions

None __init__ (self, t.IO[t.Any] wrapped)
 
None flush (self)
 
t.Any __getattr__ (self, str attr)
 

Public Attributes

 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.

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