def requireUpgrade(obj):
    """Require that a Versioned instance be upgraded completely first.
    """
    objID = id(obj)
    if objID in versionedsToUpgrade and objID not in upgraded:
        upgraded[objID] = 1
        obj.versionUpgrade()
        return obj
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/persisted/styles.py/requireUpgrade/original