environment/lib/python2.7/site-packages/IPython/extensions/autoreload.py
def update_class(old, new):
    """Replace stuff in the __dict__ of a class, and upgrade
    method code objects"""
    for key in old.__dict__.keys():
        old_obj = getattr(old, key)

        try:
            new_obj = getattr(new, key)
        except AttributeError:
            # obsolete attribute: remove it
            try:
                delattr(old, key)
            except (AttributeError, TypeError):
                pass
            continue

        if update_generic(old_obj, new_obj): continue

        try:
            setattr(old, key, getattr(new, key))
        except (AttributeError, TypeError):
            pass
def update_class(old, new):
    """Replace stuff in the __dict__ of a class, and upgrade
    method code objects"""
    for key in old.__dict__.keys():
        old_obj = getattr(old, key)

        try:
            new_obj = getattr(new, key)
        except AttributeError:
            # obsolete attribute: remove it
            try:
                delattr(old, key)
            except (AttributeError, TypeError):
                pass
            continue

        if update_generic(old_obj, new_obj): continue

        try:
            setattr(old, key, getattr(new, key))
        except (AttributeError, TypeError):
            pass
def update_class ( old , new ) : for key in old . __dict__ . keys ( ) : old_obj = getattr ( old , key ) try : new_obj = getattr ( new , key ) except AttributeError : # obsolete attribute: remove it try : delattr ( old , key ) except ( AttributeError , TypeError ) : pass continue if update_generic ( old_obj , new_obj ) : continue try : setattr ( old , key , getattr ( new , key ) ) except ( AttributeError , TypeError ) : pass
Replace stuff in the __dict__ of a class, and upgrade
    method code objects
Replace stuff in the __dict__ of a class and upgrade method code objects