(source, module_name)
return thrift
Load thrift file like object as a module.
Load thrift file like object as a module.
Load thrift file like object as a module .
def load_fp(source, module_name):
    """Load thrift file like object as a module.
    """
    thrift = parse_fp(source, module_name)
    sys.modules[module_name] = thrift
    return thrift
def load_fp ( source , module_name ) : thrift = parse_fp ( source , module_name ) sys . modules [ module_name ] = thrift return thrift