def updateInstance(self):
    """
    Updates an instance to be current.
    """
    try:
        self.__class__ = latestClass(self.__class__)
    except __HOLE__:
        if hasattr(self.__class__, '__slots__'):
            raise RebuildError("Can't rebuild class with __slots__ on Python < 2.6")
        else:
            raise
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/rebuild.py/updateInstance