def replace(self, old, new):
        self.children.remove(new)
        old_index = self.children.index(old)
        old.delete()
        self.children.insert(old_index, new)
Return token or error in json format.
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/element.py/Element.replace--crossover with--dataset/ETHPy150Open idan/oauthlib/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py/ResourceOwnerPasswordCredentialsGrant.create_token_response