(self, old_name, new_name, message=None)
Register a key as having been renamed from `old_name` to `new_name`.
        When merging a renamed key, an exception is thrown alerting to user to
        the fact that the key has been renamed.
Register a key as having been renamed from `old_name` to `new_name`.
        When merging a renamed key, an exception is thrown alerting to user to
        the fact that the key has been renamed.
Register a key as having been renamed from old_name to new_name . When merging a renamed key an exception is thrown alerting to user to the fact that the key has been renamed .
def register_renamed_key(self, old_name, new_name, message=None):
        """Register a key as having been renamed from `old_name` to `new_name`.
        When merging a renamed key, an exception is thrown alerting to user to
        the fact that the key has been renamed.
        """
        _assert_with_logging(
            old_name not in self.__dict__[CfgNode.RENAMED_KEYS],
            "key {} is already registered as a renamed cfg key".format(old_name),
        )
        value = new_name
        if message:
            value = (new_name, message)
        self.__dict__[CfgNode.RENAMED_KEYS][old_name] = value
def register_renamed_key ( self , old_name , new_name , message = None ) : _assert_with_logging ( old_name not in self . __dict__ [ CfgNode . RENAMED_KEYS ] , "key {} is already registered as a renamed cfg key" . format ( old_name ) , ) value = new_name if message : value = ( new_name , message ) self . __dict__ [ CfgNode . RENAMED_KEYS ] [ old_name ] = value