def removeLineKeys()

in datascan/bulk-creation-scripts/lib.py [0:0]


def removeLineKeys(config):
    """
        Method to recursively remove '__line__' keys from config.

        return: config
    """
    if not isinstance(config, dict):
        return config
    return {
        key: removeLineKeys(value)
        for key, value in config.items()
        if key != '__line__'
    }