Logo Search packages:      
Sourcecode: matplotlib version File versions

def matplotlib::font_manager::pickle_load (   filename  ) 

Equivalent to pickle.load(open(filename, 'r'))
but closes the file to prevent filehandle leakage.

Definition at line 844 of file font_manager.py.

00844                          :
    """Equivalent to pickle.load(open(filename, 'r'))
    but closes the file to prevent filehandle leakage."""
    fh = open(filename, 'r')
    try:
        data = pickle.load(fh)
    finally:
        fh.close()
    return data

class FontManager:


Generated by  Doxygen 1.6.0   Back to index