Logo Search packages:      
Sourcecode: matplotlib version File versions

def matplotlib::font_manager::pickle_dump (   data,
  filename 
)

Equivalent to pickle.dump(data, open(filename, 'w'))
but closes the file to prevent filehandle leakage.

Definition at line 835 of file font_manager.py.

00835                                :
    """Equivalent to pickle.dump(data, open(filename, 'w'))
    but closes the file to prevent filehandle leakage."""
    fh = open(filename, 'w')
    try:
        pickle.dump(data, fh)
    finally:
        fh.close()

def pickle_load(filename):


Generated by  Doxygen 1.6.0   Back to index