"""
Return/control aspects of the grains data
"""


import copy
import math
from collections.abc import Mapping

import salt.utils.data
import salt.utils.dictupdate
import salt.utils.json
from salt.defaults import DEFAULT_TARGET_DELIM
from salt.exceptions import SaltException

# Seed the grains dict so cython will build
__grains__ = {}


def _serial_sanitizer(instr):
    """