def _LoadModuleCode(filename):
 compiled_filename = (filename + 'c')
 if os.path.exists(compiled_filename):
  with open(compiled_filename, 'r') as f:
   magic_numbers = f.read(8)
   if ((len(magic_numbers) == 8) and (magic_numbers[:4] == imp.get_magic())):
    try:
     return (_FixCodeFilename(marshal.load(f), filename), compiled_filename)
    except (EOFError, ValueError):
     pass
 if os.path.exists(filename):
  with open(filename, 'r') as f:
   code = compile(f.read(), filename, 'exec', 0, True)
  return (code, filename)
 else:
  return (None, filename)

def _LoadModuleCode ( filename ) : compiled_filename = ( filename + 'c' ) if os . path . exists ( compiled_filename ) : with open ( compiled_filename , 'r' ) as f : magic_numbers = f . read ( 8 ) if ( ( len ( magic_numbers ) == 8 ) and ( magic_numbers [ : 4 ] == imp . get_magic ( ) ) ) : try : return ( _FixCodeFilename ( marshal . load ( f ) , filename ) , compiled_filename ) except ( EOFError , ValueError ) : pass if os . path . exists ( filename ) : with open ( filename , 'r' ) as f : code = compile ( f . read ( ) , filename , 'exec' , 0 , True ) return ( code , filename ) else : return ( None , filename )
loads the code of a module .