def load(fh, encoding=None, is_verbose=False):
try:<EOL><INDENT>fh.seek(<NUM_LIT:0>)<EOL>if encoding is not None:<EOL><INDENT>up = Unpickler(fh, encoding=encoding)<EOL><DEDENT>else:<EOL><INDENT>up = Unpickler(fh)<EOL><DEDENT>up.is_verbose = is_verbose<EOL>return up.load()<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>raise<EOL><DEDENT>
load a pickle, with a provided encoding

    if compat is True:
       fake the old class hierarchy
       if it works, then return the new type objects

    Parameters
    ----------
    fh : a filelike object
    encoding : an optional encoding
    is_verbose : show exception output