Module Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad Str Str Assign NameStore Call NameLoad NameLoad Str Str Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad Str Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Str Str Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad Str Str Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad Str Str Assign NameStore Call NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Str Str Assign NameStore Str ClassDef bases body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareNotEq NameLoad NameLoad body Raise NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Exec NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return ListLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If BoolOpAnd CompareNotEq NameLoad NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore ListLoad AttributeLoad NameLoad attr TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Import alias Import alias Import alias Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str TupleLoad NameLoad NameLoad Import alias Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Import alias identifier Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Import alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Assign NameStore TupleLoad Str Str Str Str For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num For NameStore Call NameLoad AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys N/A imp N/A os N/A unittest test support N/A test_src def get_name():
    return __name__
def get_file():
    return __file__
 N/A absimp import sub
 N/A relimp from . import sub
 N/A deeprelimp from .... import sub
 N/A futimp from __future__ import absolute_import
 N/A reload_src N/A test_src reloaded = True
 N/A test_co N/A compile test_src <???> exec N/A reload_co N/A compile reload_src <???> exec N/A test2_oldabs_co N/A compile N/A absimp test_src <???> exec N/A test2_newabs_co N/A compile N/A N/A futimp absimp test_src <???> exec N/A test2_newrel_co N/A compile N/A relimp test_src <???> exec N/A test2_deeprel_co N/A compile N/A deeprelimp test_src <???> exec N/A test2_futrel_co N/A compile N/A N/A futimp relimp test_src <???> exec N/A test_path !!!_test_!!! TestImporter N/A N/A N/A modules N/A hooktestmodule hooktestpackage hooktestpackage.sub hooktestpackage.sub.subber hooktestpackage.oldabs hooktestpackage.newabs hooktestpackage.newrel hooktestpackage.sub.subber.subest hooktestpackage.futrel sub reloadmodule N/A False test_co N/A True test_co N/A True test_co N/A True test_co N/A False test2_oldabs_co N/A False test2_newabs_co N/A False test2_newrel_co N/A True test2_deeprel_co N/A False test2_futrel_co N/A False test_co N/A False test_co __init__ N/A N/A self path N/A test_path N/A N/A N/A path test_path N/A N/A ImportError N/A N/A self path path N/A _get__path__ N/A N/A self N/A N/A N/A NotImplementedError N/A find_module N/A N/A self fullname path N/A None N/A N/A N/A fullname N/A self modules N/A N/A self N/A N/A None N/A load_module N/A N/A self fullname N/A N/A N/A N/A ispkg code N/A N/A self modules N/A fullname N/A mod N/A N/A N/A sys modules setdefault fullname N/A N/A imp new_module fullname N/A N/A mod __file__ N/A <%s> N/A N/A self __class__ __name__ N/A N/A mod __loader__ self N/A ispkg N/A N/A N/A mod __path__ N/A N/A self _get__path__ N/A code N/A mod __dict__ N/A mod N/A N/A MetaImporter N/A TestImporter N/A _get__path__ N/A N/A self N/A N/A N/A N/A N/A N/A PathImporter N/A TestImporter N/A _get__path__ N/A N/A self N/A N/A N/A N/A N/A self path N/A N/A ImportBlocker N/A N/A N/A Place an ImportBlocker instance on sys.meta_path and you
    can be sure the modules you specified can't be imported, even
    if it's a builtin. __init__ N/A N/A self N/A namestoblock N/A N/A N/A self namestoblock N/A N/A dict fromkeys namestoblock N/A find_module N/A N/A self fullname path N/A None N/A N/A N/A fullname N/A self namestoblock N/A N/A self N/A None N/A load_module N/A N/A self fullname N/A N/A N/A N/A ImportError I dare you N/A N/A ImpWrapper N/A N/A __init__ N/A N/A self path N/A None N/A N/A N/A N/A path None N/A N/A N/A N/A os path isdir path N/A N/A ImportError N/A N/A self path path N/A find_module N/A N/A self fullname path N/A None N/A N/A subname N/A N/A N/A fullname split . N/A -1 N/A N/A N/A subname fullname N/A N/A self path None N/A N/A None N/A N/A N/A self path None N/A N/A path None N/A N/A path N/A N/A self path N/A N/A N/A N/A file filename stuff N/A N/A imp find_module subname path N/A N/A N/A ImportError N/A N/A None N/A N/A ImpLoader file filename stuff N/A N/A ImpLoader N/A N/A __init__ N/A N/A self file filename stuff N/A N/A N/A N/A self file file N/A N/A self filename filename N/A N/A self stuff stuff N/A load_module N/A N/A self fullname N/A N/A N/A mod N/A N/A imp load_module fullname N/A self file N/A self filename N/A self stuff N/A N/A self file N/A N/A N/A N/A N/A self file close N/A N/A mod __loader__ self N/A mod N/A N/A ImportHooksBaseTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self path N/A N/A sys path N/A N/A N/A self meta_path N/A N/A sys meta_path N/A N/A N/A self path_hooks N/A N/A sys path_hooks N/A N/A N/A N/A N/A sys path_importer_cache clear N/A N/A self modules_before N/A N/A support modules_setup N/A tearDown N/A N/A self N/A N/A N/A N/A N/A sys path N/A N/A self path N/A N/A N/A sys meta_path N/A N/A self meta_path N/A N/A N/A sys path_hooks N/A N/A self path_hooks N/A N/A N/A N/A sys path_importer_cache clear N/A N/A N/A support modules_cleanup N/A self modules_before N/A N/A ImportHooksTestCase N/A ImportHooksBaseTestCase N/A doTestImports N/A N/A self importer N/A None N/A N/A hooktestmodule N/A hooktestpackage N/A hooktestpackage.sub N/A hooktestpackage.sub.subber N/A N/A N/A self assertEqual N/A N/A hooktestmodule get_name hooktestmodule N/A N/A N/A self assertEqual N/A N/A hooktestpackage get_name hooktestpackage N/A N/A N/A self assertEqual N/A N/A N/A hooktestpackage sub get_name hooktestpackage.sub N/A N/A N/A self assertEqual N/A N/A N/A N/A hooktestpackage sub subber get_name hooktestpackage.sub.subber N/A importer N/A N/A N/A N/A self assertEqual N/A hooktestmodule __loader__ importer N/A N/A N/A self assertEqual N/A hooktestpackage __loader__ importer N/A N/A N/A self assertEqual N/A N/A hooktestpackage sub __loader__ importer N/A N/A N/A self assertEqual N/A N/A N/A hooktestpackage sub subber __loader__ importer N/A N/A N/A TestImporter modules N/A reloadmodule N/A False test_co N/A reloadmodule N/A N/A N/A self assertFalse N/A hasattr reloadmodule reloaded N/A hooktestpackage.newrel N/A N/A N/A self assertEqual N/A N/A N/A hooktestpackage newrel get_name hooktestpackage.newrel N/A N/A N/A self assertEqual N/A N/A hooktestpackage newrel sub N/A hooktestpackage sub N/A hooktestpackage.sub.subber.subest subest N/A N/A N/A self assertEqual N/A N/A subest get_name hooktestpackage.sub.subber.subest N/A N/A N/A self assertEqual N/A subest sub N/A hooktestpackage sub N/A hooktestpackage.futrel N/A N/A N/A self assertEqual N/A N/A N/A hooktestpackage futrel get_name hooktestpackage.futrel N/A N/A N/A self assertEqual N/A N/A hooktestpackage futrel sub N/A hooktestpackage sub N/A sub N/A N/A N/A self assertEqual N/A N/A sub get_name sub N/A hooktestpackage.oldabs N/A N/A N/A self assertEqual N/A N/A N/A hooktestpackage oldabs get_name hooktestpackage.oldabs N/A N/A N/A self assertEqual N/A N/A hooktestpackage oldabs sub sub N/A hooktestpackage.newabs N/A N/A N/A self assertEqual N/A N/A N/A hooktestpackage newabs get_name hooktestpackage.newabs N/A N/A N/A self assertEqual N/A N/A hooktestpackage newabs sub sub N/A testMetaPath N/A N/A self N/A N/A N/A i N/A MetaImporter N/A N/A N/A N/A sys meta_path append i N/A N/A N/A self doTestImports i N/A testPathHook N/A N/A self N/A N/A N/A N/A N/A N/A sys path_hooks insert 0 PathImporter N/A N/A N/A N/A sys path append test_path N/A N/A N/A self doTestImports N/A testBlocker N/A N/A self N/A N/A N/A mname exceptions N/A N/A N/A support unload mname N/A N/A N/A N/A sys meta_path append N/A ImportBlocker mname N/A N/A N/A self assertRaises ImportError __import__ mname N/A testImpWrapper N/A N/A self N/A N/A N/A i N/A ImpWrapper N/A N/A N/A N/A sys meta_path append i N/A N/A N/A N/A sys path_hooks insert 0 ImpWrapper N/A mnames N/A colorsys urllib.parse distutils.core sys N/A mname mnames N/A N/A parent N/A N/A N/A mname split . N/A 0 N/A n N/A list N/A sys modules N/A N/A N/A N/A n startswith parent N/A N/A N/A N/A sys modules N/A n N/A mname mnames N/A N/A m N/A __import__ mname N/A globals N/A locals N/A __dummy__ N/A N/A N/A self assertTrue N/A hasattr m __loader__ N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A support run_unittest ImportHooksTestCase N/A N/A N/A __name__ __main__ N/A N/A N/A test_main