def load(filename):
filename = os.path.normcase(filename)<EOL>try:<EOL><INDENT>with open(filename, '<STR_LIT:rb>') as f:<EOL><INDENT>u = pickle.Unpickler(f)<EOL>return u.load()<EOL><DEDENT><DEDENT>except IOError:<EOL><INDENT>raise LogOpeningError('<STR_LIT>' % filename, filename)<EOL><DEDENT>
Retrieve a pickled object

    Parameter
    ---------
    filename : path

    Return
    ------
    object
        Unpickled object