def load_module_from_file_object(fp, filename='<STR_LIT>', code_objects=None, fast_load=False,<EOL>get_code=True):
if code_objects is None:<EOL><INDENT>code_objects = {}<EOL><DEDENT>timestamp = <NUM_LIT:0><EOL>try:<EOL><INDENT>magic = fp.read(<NUM_LIT:4>)<EOL>magic_int = magics.magic2int(magic)<EOL>if magic[<NUM_LIT:0>:<NUM_LIT:1>] in ['<STR_LIT:0>', b'<STR_LIT:0>']:<EOL><INDENT>magic = magics.int2magic(<NUM_LIT>+<NUM_LIT:7>)<EOL><DEDENT>try:<EOL><INDENT>float_version = float(magics.versions[magic][:<NUM_LIT:3>])<EOL><DEDENT>except KeyError:<EOL><INDENT>if magic_int in (<NUM_LIT>, <NUM_LIT>):<EOL><INDENT>raise ImportError("<STR_LIT>")<EOL><DEDENT>if len(magic) >= <NUM_LIT:2>:<EOL><INDENT>raise ImportError("<STR_LIT>" %<EOL>(ord(magic[<NUM_LIT:0>:<NUM_LIT:1>])+<NUM_LIT>*ord(magic[<NUM_LIT:1>:<NUM_LIT:2>]), filename))<EOL><DEDENT>else:<EOL><INDENT>raise ImportError("<STR_LIT>" % magic)<EOL><DEDENT><DEDENT>if magic_int in (<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>):<EOL><INDENT>raise ImportError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (<EOL>filename, magics.versions[magic],<EOL>magics.magic2int(magic)))<EOL><DEDENT>elif magic_int == <NUM_LIT>:<EOL><INDENT>fp.seek(<NUM_LIT:0>)<EOL>return fix_dropbox_pyc(fp)<EOL><DEDENT>elif magic_int == <NUM_LIT>:<EOL><INDENT>raise ImportError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (<EOL>filename, magics.versions[magic],<EOL>magics.magic2int(magic)))<EOL><DEDENT>try:<EOL><INDENT>ts = fp.read(<NUM_LIT:4>)<EOL>my_magic_int = magics.magic2int(imp.get_magic())<EOL>magic_int = magics.magic2int(magic)<EOL>if magic_int == <NUM_LIT>:<EOL><INDENT>timestamp = <NUM_LIT:0><EOL>_ = unpack("<STR_LIT>", ts)[<NUM_LIT:0>]         <EOL>_ = unpack("<STR_LIT>", fp.read(<NUM_LIT:4>))[<NUM_LIT:0>] <EOL><DEDENT>elif magic_int in (<NUM_LIT>, <NUM_LIT>):<EOL><INDENT>timestamp = <NUM_LIT:0><EOL>_ = unpack("<STR_LIT>", fp.read(<NUM_LIT:4>))[<NUM_LIT:0>] <EOL><DEDENT>else:<EOL><INDENT>timestamp = unpack("<STR_LIT>", ts)[<NUM_LIT:0>]<EOL><DEDENT>if <NUM_LIT> <= magic_int < <NUM_LIT> and magic_int not in (<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>):<EOL><INDENT>source_size = unpack("<STR_LIT>", fp.read(<NUM_LIT:4>))[<NUM_LIT:0>] <EOL><DEDENT>else:<EOL><INDENT>source_size = None<EOL><DEDENT>if get_code:<EOL><INDENT>if my_magic_int == magic_int:<EOL><INDENT>bytecode = fp.read()<EOL>co = marshal.loads(bytecode)<EOL><DEDENT>elif fast_load:<EOL><INDENT>co = xdis.marsh.load(fp, magics.magicint2version[magic_int])<EOL><DEDENT>else:<EOL><INDENT>co = xdis.unmarshal.load_code(fp, magic_int, code_objects)<EOL><DEDENT>pass<EOL><DEDENT>else:<EOL><INDENT>co = None<EOL><DEDENT><DEDENT>except:<EOL><INDENT>kind, msg = sys.exc_info()[<NUM_LIT:0>:<NUM_LIT:2>]<EOL>import traceback<EOL>traceback.print_exc()<EOL>raise ImportError("<STR_LIT>"<EOL>% (filename, kind, msg))<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>fp.close()<EOL><DEDENT>return float_version, timestamp, magic_int, co, is_pypy(magic_int), source_size<EOL>
load a module from a file object without importing it.

    See :func:load_module for a list of return values.