PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` netaddr.core.PrettyPrinter
Package netaddr :: Module core :: Class PrettyPrinter
[hide private]
[frames] | no frames]

Class PrettyPrinter

object --+    
         |    
Subscriber --+
             |
            PrettyPrinter

A concrete Subscriber that employs the pprint in the standard library to format all data from updates received, writing them to a file-like object.

Useful as a debugging aid.

Instance Methods [hide private]
 
__init__(self, fh=_sys.stdout, write_eol=True)
Constructor.
 
update(self, data)
A callback method used by a Publisher to notify this Subscriber about updates.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fh=_sys.stdout, write_eol=True)
(Constructor)

 

Constructor.

Parameters:
  • fh - a file-like object to write updates to. Default: sys.stdout.
  • write_eol - if True this object will write newlines to output, if False it will not.
Overrides: object.__init__

update(self, data)

 

A callback method used by a Publisher to notify this Subscriber about updates.

Parameters:
  • data - a Python object containing data provided by Publisher.
Overrides: Subscriber.update