Module Import alias alias Import alias ImportFrom alias ImportFrom alias Import alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad NameLoad body Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Raise Call NameLoad Str decorator_list decorator_list Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Import alias alias Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Pass orelse ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Assign NameStore Call AttributeLoad NameLoad attr 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 NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ImportFrom alias Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Global identifier identifier Assign NameStore Call NameLoad ClassDef bases body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad NameLoad Str Str Assert Call NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore Call NameLoad FunctionDef arguments args defaults body Global identifier Assign NameStore NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index Str Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListLoad Str Assign NameStore Str Exec NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A sys os N/A new twisted.trial unittest twisted.python rebuild N/A crash_test_dummy N/A f N/A crash_test_dummy foo Foo N/A N/A N/A N/A Bar N/A Foo N/A N/A N/A Baz N/A object N/A N/A N/A Buz N/A Bar Baz N/A N/A N/A HashRaisesRuntimeError N/A N/A N/A 
    Things that don't hash (raise an Exception) should be ignored by the
    rebuilder.

    @ivar hashCalled: C{bool} set to True when __hash__ is called.
     __init__ N/A N/A self N/A N/A N/A N/A self hashCalled False N/A __hash__ N/A N/A self N/A N/A N/A N/A self hashCalled True N/A N/A RuntimeError not a TypeError! N/A N/A N/A unhashableObject None RebuildTestCase N/A N/A unittest TestCase N/A N/A 
    Simple testcase for rebuilding, to at least exercise the code.
     setUp N/A N/A self N/A N/A N/A N/A self libPath N/A N/A self mktemp N/A N/A N/A os mkdir N/A self libPath N/A N/A self fakelibPath N/A N/A N/A os path join N/A self libPath twisted_rebuild_fakelib N/A N/A N/A os mkdir N/A self fakelibPath N/A N/A N/A N/A file N/A N/A N/A os path join N/A self fakelibPath __init__.py w close N/A N/A N/A N/A sys path insert 0 N/A self libPath N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A sys path remove N/A self libPath N/A testFileRebuild N/A N/A self N/A N/A twisted.python.util sibpath N/A shutil time N/A N/A N/A shutil copyfile N/A sibpath __file__ myrebuilder1.py N/A N/A N/A os path join N/A self fakelibPath myrebuilder.py twisted_rebuild_fakelib myrebuilder N/A a N/A N/A myrebuilder A N/A N/A N/A object N/A N/A N/A NameError N/A N/A N/A twisted.test test_rebuild N/A b N/A N/A myrebuilder B C N/A N/A myrebuilder B N/A N/A N/A N/A N/A test_rebuild C C N/A c N/A C N/A i N/A N/A myrebuilder Inherit N/A N/A N/A self assertEquals N/A N/A a a a N/A N/A N/A time sleep 1.1 N/A N/A N/A shutil copyfile N/A sibpath __file__ myrebuilder2.py N/A N/A N/A os path join N/A self fakelibPath myrebuilder.py N/A N/A N/A rebuild rebuild myrebuilder N/A N/A N/A object N/A N/A N/A NameError N/A N/A N/A N/A b2 N/A N/A myrebuilder B N/A N/A N/A self assertEquals N/A N/A b2 b c N/A N/A N/A self assertEquals N/A N/A b b c N/A N/A N/A self assertEquals N/A N/A i a d N/A N/A N/A self assertEquals N/A N/A a a b N/A testRebuild N/A N/A self N/A N/A N/A 
        Rebuilding an unchanged module.
         N/A x N/A N/A crash_test_dummy X a N/A N/A N/A rebuild rebuild crash_test_dummy doLog False N/A N/A N/A x do N/A N/A N/A self failUnlessIdentical N/A x __class__ N/A crash_test_dummy X N/A N/A N/A self failUnlessIdentical f N/A crash_test_dummy foo N/A testComponentInteraction N/A N/A self N/A N/A N/A x N/A N/A crash_test_dummy XComponent N/A N/A N/A x setAdapter N/A crash_test_dummy IX N/A crash_test_dummy XA N/A oldComponent N/A N/A x getComponent N/A crash_test_dummy IX N/A N/A N/A rebuild rebuild crash_test_dummy 0 N/A newComponent N/A N/A x getComponent N/A crash_test_dummy IX N/A N/A N/A newComponent method N/A N/A N/A self assertEquals N/A newComponent __class__ N/A crash_test_dummy XA twisted.python components N/A N/A N/A self failUnlessRaises ValueError N/A components registerAdapter N/A crash_test_dummy XA N/A crash_test_dummy X N/A crash_test_dummy IX N/A testUpdateInstance N/A N/A self N/A N/A N/A Foo Buz N/A b N/A Buz Foo N/A N/A foo N/A N/A self N/A N/A N/A N/A N/A Buz N/A Bar Baz N/A N/A x 10 N/A N/A N/A N/A rebuild updateInstance b N/A N/A hasattr b foo Missing method on rebuilt instance N/A N/A hasattr b x Missing class attribute on rebuilt instance N/A testBananaInteraction N/A N/A self N/A N/A twisted.python rebuild twisted.spread banana N/A N/A N/A rebuild latestClass N/A banana Banana N/A test_hashException N/A N/A self N/A N/A N/A 
        Rebuilding something that has a __hash__ that raises a non-TypeError
        shouldn't cause rebuild to die.
         N/A unhashableObject N/A unhashableObject N/A HashRaisesRuntimeError _cleanup N/A N/A N/A N/A N/A unhashableObject N/A unhashableObject None N/A N/A N/A N/A self addCleanup _cleanup N/A N/A N/A rebuild rebuild rebuild N/A N/A N/A self assertEquals N/A unhashableObject hashCalled True N/A N/A NewStyleTestCase N/A N/A unittest TestCase N/A N/A 
    Tests for rebuilding new-style classes of various sorts.
     setUp N/A N/A self N/A N/A N/A N/A self m N/A N/A new module whipping N/A N/A N/A sys modules N/A whipping N/A self m N/A tearDown N/A N/A self N/A N/A N/A N/A N/A sys modules N/A whipping N/A N/A self m N/A test_slots N/A N/A self N/A N/A N/A 
        Try to rebuild a new style class with slots defined.
         N/A classDefinition class SlottedClass(object):
    __slots__ = ['a']
 N/A classDefinition N/A N/A self m __dict__ N/A inst N/A N/A N/A self m SlottedClass N/A N/A inst a 7 N/A classDefinition N/A N/A self m __dict__ N/A N/A N/A rebuild updateInstance inst N/A N/A N/A self assertEqual N/A inst a 7 N/A N/A N/A self assertIdentical N/A type inst N/A N/A self m SlottedClass N/A N/A N/A N/A sys version_info N/A 2 6 N/A N/A N/A test_slots skip __class__ assignment for class with slots is only available starting Python 2.6 test_errorSlots N/A N/A self N/A N/A N/A 
        Try to rebuild a new style class with slots defined: this should fail.
         N/A classDefinition class SlottedClass(object):
    __slots__ = ['a']
 N/A classDefinition N/A N/A self m __dict__ N/A inst N/A N/A N/A self m SlottedClass N/A N/A inst a 7 N/A classDefinition N/A N/A self m __dict__ N/A N/A N/A self assertRaises N/A rebuild RebuildError N/A rebuild updateInstance inst N/A N/A N/A N/A sys version_info N/A 2 6 N/A N/A N/A test_errorSlots skip __class__ assignment for class with slots should work starting Python 2.6 test_typeSubclass N/A N/A self N/A N/A N/A 
        Try to rebuild a base type subclass.
         N/A classDefinition class ListSubclass(list):
    pass
 N/A classDefinition N/A N/A self m __dict__ N/A inst N/A N/A N/A self m ListSubclass N/A N/A N/A inst append 2 N/A classDefinition N/A N/A self m __dict__ N/A N/A N/A rebuild updateInstance inst N/A N/A N/A self assertEqual N/A inst N/A 0 2 N/A N/A N/A self assertIdentical N/A type inst N/A N/A self m ListSubclass N/A test_instanceSlots N/A N/A self N/A N/A N/A 
        Test that when rebuilding an instance with a __slots__ attribute, it
        fails accurately instead of giving a L{rebuild.RebuildError}.
         N/A classDefinition class NotSlottedClass(object):
    pass
 N/A classDefinition N/A N/A self m __dict__ N/A inst N/A N/A N/A self m NotSlottedClass N/A N/A inst __slots__ N/A a N/A classDefinition class NotSlottedClass:
    pass
 N/A classDefinition N/A N/A self m __dict__ N/A N/A N/A self assertRaises TypeError N/A rebuild updateInstance inst N/A N/A